Git cheat sheet: Difference between revisions

Line 177: Line 177:
git checkout -b new_branch upstream/new_branch
git checkout -b new_branch upstream/new_branch
git push -u origin new_branch
git push -u origin new_branch
</syntaxhighlight>
いわゆる backport
<syntaxhighlight lang="bash" enclose="div">
git checkout 対象ブランチ
git checkout -b 修正用ブランチ名
git cherry-pick -x <commit_hash>
git push -u origin 修正用ブランチ名
# そして PR
</syntaxhighlight>
</syntaxhighlight>