Remove staged files that haven't been commited yet
In case you added some files to early via git add
and you want to undo that step just run git rm [-f] --cached <path/to/file1> <path/to/fileN>
. The -f
(orce) flag is required if file1 or fileN have been edited in the meanwhile.
Written by Raphael Stolt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#