Last active
June 15, 2021 09:08
-
-
Save netalex/1c37d6eef5c903de018a4d35f542c630 to your computer and use it in GitHub Desktop.
how to move a commit from a branch to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from https://dev.to/projectpage/how-to-move-a-commit-to-another-branch-in-git-4lj4