2 ms·
somehow 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
by mapmeld 12y ago
somehow 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.