Skip to content

Comment on Git and GitHub Secrets [video]parent

Comments

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!

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
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.