Last active
August 29, 2015 14:22
-
-
Save jonatanrdsantos/47078454bb3bc8666124 to your computer and use it in GitHub Desktop.
how to use git cherry-pick
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
git checkout master | |
git checkout -b my-new-feature | |
git branch | |
git fetch -p | |
git reset --hard origin/homologa | |
git add . | |
git commit -m 'added html file in root path' | |
git push origin ON-3448 | |
git branch -v | |
git log # used for get the commit hash => 7e343cd7d399c39bcdc630e7ec84a200cc9a53d9 | |
git branch | |
git checkout homologa | |
git branch | |
git fetch -p | |
git reset --hard origin/homologa | |
git cherry-pick 7e343cd7d399c39bcdc630e7ec84a200cc9a53d9 | |
git push origin homologa | |
git checkout master | |
git merge ON-3448 | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment