“Git Cherry Pick Commit” Ответ

Git Cherry Pick Commit

# from the  branch you want to apply changes

# it will bring all commit changes but also stage them
git cherry-pick <commit-hash> 

# it will bring all commit changes but leave them unstaged

git cherry-pick -n <commit-hash> #OR
git cherry-pick --no-commit <commit-hash> 
Thankful Turtle

Git Cherry Pick Commit

#Checkout the branch you want to apply the commit to.
git checkout master

#Cherry pick using the commit hash.
git cherry-pick <commit-hash>

#If cherry picking from a public branch use "-x" to add a standardized commit message.
git cherry-pick -x <commit-hash>
Two4Roughing

вишня

$ git cherry-pick 93ae442 
Evergreen Tomato

Git Cherry выбирайте части коммита

git cherry-pick -n <commit> # get your patch, but don't commit (-n = --no-commit)
git reset                   # unstage the changes from the cherry-picked commit
git add -p                  # make all your choices (add the changes you do want)
git commit                  # make the commit!
DevPedrada

Ответы похожие на “Git Cherry Pick Commit”

Вопросы похожие на “Git Cherry Pick Commit”

Больше похожих ответов на “Git Cherry Pick Commit” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования