News for hackers. Stuff that matters.
Re:Git and GitHub Secrets [video] by prolepunk on Monday October 29, 2012 @10:56AM (#4712522)
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!

Re:Git and GitHub Secrets [video] by mercurial on Monday October 29, 2012 @11:27AM (#4712694)
Clearly 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