Re:Gitjk – command to undo what you just did in git
by homulilly on Monday May 26, 2014 @04:14PM
(#7801381)
Uh... if you want to undo a git add shouldn't you be doing git reset?
[ Parent
| on HN ]
Re:Gitjk – command to undo what you just did in git
by mapmeld on Monday May 26, 2014 @04:21PM
(#7801422)
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.