Skip to content

Instantly share code, notes, and snippets.

@mihai-vlc
Created June 18, 2023 17:31
Show Gist options
  • Save mihai-vlc/244c54528967086d3af1dc2f2e426533 to your computer and use it in GitHub Desktop.
Save mihai-vlc/244c54528967086d3af1dc2f2e426533 to your computer and use it in GitHub Desktop.
function gtcmf {
$hash = $(git log --grep=fixup --invert-grep --max-count=1 --pretty=%h)
git commit --fixup $hash
}
function gtfix {
$hash = $(git log --grep=fixup --invert-grep --max-count=1 --pretty=%h)
git rebase --interactive --rebase-merges --autostash --autosquash $hash^
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment