Skip to content

Instantly share code, notes, and snippets.

@antoniopresto
Last active November 20, 2019 22:26
Show Gist options
  • Save antoniopresto/368442356b3613d7ca518ff082f25e40 to your computer and use it in GitHub Desktop.
Save antoniopresto/368442356b3613d7ca518ff082f25e40 to your computer and use it in GitHub Desktop.
git log master..HEAD --oneline | tail -1
git reset --soft HEAD~3 &&
git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment