Skip to content

Instantly share code, notes, and snippets.

@maxmarinich
Last active May 20, 2022 11:55
Show Gist options
  • Save maxmarinich/e23a4c6b54a116eb4852d0f0e61961b2 to your computer and use it in GitHub Desktop.
Save maxmarinich/e23a4c6b54a116eb4852d0f0e61961b2 to your computer and use it in GitHub Desktop.
git merge-base HEAD BRANCH_YOU_BRANCHED_FROM (HEAD -> dev, master... )
git reset --soft COMMIT_HASH
git commit -am 'This is the new re-created one commit'
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment