- Forums
- Angular
- Git - How To Remove A File From A Commit
the reason for this page is to give you the command in git you will need to remove, not delete a file from a project or commit in git [4633], Last Updated: Mon Jun 24, 2024
webune
Mon Jan 30, 2017
0 Comments
331 Visits
alright, so you are here because you want to remove a spefic file from your git commit, its very easy to do.
just send this git command:
git rm -f /path/to/file/filename.txt
thats it, the -f option means to force
hope that helps