Remove file from git repository git rm --cached filepath Related Posts Remove folder from a git repository git create a repository and a branch git reset hard to master