How to cherrypick for other branch's commit

1. git remote add stream_name repository

    e.g.) git remote add upstream git@bitbucket.org:testorg/test_1.0.git

2. git remote -v

           upstream        git@bitbucket.org:testorg/test_1.0.git (fetch)
           upstream        git@bitbucket.org:testorg/test_1.0.git (push)

3. git fetch upstream #branch_name

    e.g.) git fetch upstream dev/epic-1

4. git cherry-pick -e #commit

5. git push

6. git remove remove upstream

반응형

+ Recent posts