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