Home ›
Undo a git add - remove files staged for a git commitUndo a git add - remove files staged for a git commit
Submitted by Benjamin Melançon on August 15, 2010 - 6:27pm
git reset filename.txt
Will remove a file named filename.txt from the current index, the "about to be committed" area, without changing anything else.
To undo git add . use git reset (no dot).
Searched words:
undo git add
unstage remove
git rm --cached filename.txt
git delete from index
cancel from commit
Comments
Thank you
This is the recommended page when you google "undo git add". Easy and on point. Thank you
Very straightforward. Thank
Very straightforward. Thank you.
Post new comment