Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For quick changes to the most recent commit, a handy alias to put in your ~/.gitconfig is:

  fixup = commit --amend -C HEAD
That way you can stage whatever you forgot, and then do `git fixup` to update the latest commit with it. Saves a little bit of typing :)

I do love `rebase -i` for anything more complicated though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: