re: Git hacks you should know about VIEW POST

FULL DISCUSSION
 

An easier way to remove a file that has been added to the last commit by mistake:

git rm --cached <wrong_file>
git commit --amend

This doesn't delete the file, though. Dropping '--cached' would delete it.

 
code of conduct - report abuse