Skip to content

Instantly share code, notes, and snippets.

@netalex
Last active June 15, 2021 09:08
Show Gist options
  • Save netalex/1c37d6eef5c903de018a4d35f542c630 to your computer and use it in GitHub Desktop.
Save netalex/1c37d6eef5c903de018a4d35f542c630 to your computer and use it in GitHub Desktop.
how to move a commit from a branch to another
# https://dev.to/projectpage/how-to-move-a-commit-to-another-branch-in-git-4lj4
# b12ca8b: commit da spostare
# 02b2852: commit precedente
git checkout feature/branch-destinazione
git cherry-pick b12ca8b
git checkout feature/branch-da-cui-togliere
git reset --hard 02b2852
@netalex
Copy link
Author

netalex commented Jun 15, 2021

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