atlassian sourcetree - git - apply a commit on another branch to the working copy -


so have commit has helpful code change, on branch.

i apply commit in other branch working copy on current branch (not commit).

is possible? how this?

thought i'd share related previous question specific working copy: git cherry picking 1 commit branch

how add desired commit(s) different branch.

git cherry-pick <sha-1>...<sha-1> --no-commit

apply change introduced commit(s) @ tip of master branch , create new commit(s) change.

the syntax of ... commit range. grab commits start (exclude) last one. if want single commit use single sha-1

enter image description here


read out full git cherry-pick documentation options can use


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -