Skip to content

Instantly share code, notes, and snippets.

@laurazenc
Last active March 3, 2022 12:06
Show Gist options
  • Save laurazenc/b3744c4c204bdf885d858ff45e88eb4e to your computer and use it in GitHub Desktop.
Save laurazenc/b3744c4c204bdf885d858ff45e88eb4e to your computer and use it in GitHub Desktop.
Edit commit from branch

git rebase --interactive 'bbc643cd^' // This should be the hash from the commit you are trying to edit

Make changes

git commit --all --amend --no-edit

Continue rebasing

git rebase --continue

Push changes

git push --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment