37 ms·
Uh... if you want to undo a git add shouldn't you be doing git reset?
by homulilly 12y ago
Uh... if you want to undo a git add shouldn't you be doing git reset?
- mapmeld 12y agosomehow when I was testing it, I thought I needed to use rm -r --cached to remove a previously untracked file. It should do git reset in most cases. Edit: now recommends git reset unless you did "git add ." or something like that.
- achal 12y agoYou may have been on your initial commit; in that case, you need to use rm --cached instead of reset to undo a git add.