Skip to content

Instantly share code, notes, and snippets.

View kendepelchin's full-sized avatar
🏠
Working from home

Ken Depelchin kendepelchin

🏠
Working from home
  • Pexip Engage (Skedify)
  • Ghent, Belgium
View GitHub Profile
@coderabbi
coderabbi / git-fix.md
Last active January 28, 2021 10:54
Git Alias: fix

Ever wish you could add something to a prior commit, but you've committed a few times since?

Simple, right? git commit --fixup <hash-to-fix> followed by git rebase -i <last-good-hash>

I don't know about you, but that's one more hash than I want to deal with and since the --autostash option sets up the rebase properly for me, I really don't want to have to deal with my editor, either....

Consider the "git fix" alias.

Definition: