pablocattaneo
5/29/2017 - 8:14 PM

How removes a single file from the staging area of Git but not remove it from the index or undo the changes to the file itself Source: http

How removes a single file from the staging area of Git but not remove it from the index or undo the changes to the file itself

Source: https://stackoverflow.com/questions/1505948/how-do-i-remove-a-single-file-from-the-staging-area-of-git-but-not-remove-it-fro

git reset HEAD <file>

#"undo" the git add that was done for that file.

#Your modifications will be kept. When you run git status the file will once again show up as modified but not yet staged