Friday, January 21, 2011

git rm --cached

Use only to remove new files from the staging area (and only in case of a new file):

git rm --cached FILE
Use rm --cached only for new files accidentally added.

Otherwise, use git reset HEAD .....

No comments:

Post a Comment