3 ms·
About 'git commit --amend' actually it works on any commit that hasn't been pushed upstream, the speaker talks about for some time, so the more verbose version
by prolepunk 14y ago
About 'git commit --amend' actually it works on any commit that hasn't been pushed upstream, the speaker talks about for some time, so the more verbose version of the command would be 'git commit --amend <SHA Hash>' but all of the previous commits are usually pushed upstream anyway, so effectively this command works only on the last commit.
I didn't know about reflog and whatchanged, I'll definitely read up on them. Thanks!
- mercurial 14y agoClearly not with every git: $ git commit --amend a98fd2e95dde78041132b6281f6c2127712507f5 error: pathspec 'a98fd2e95dde78041132b6281f6c2127712507f5' did not match any file(s) known to git. $ git --version git version 1.7.11.msysgit.1