7,166
edits
(→実用編) |
(→実用編) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 191: | Line 191: | ||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
git log --oneline | git log --oneline | ||
git cherry-pick {COMMIT-A}^..{COMMIT-Z} | git cherry-pick -x {COMMIT-A}^..{COMMIT-Z} | ||
</syntaxhighlight> | |||
作業ミスして upstream と強制同期 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
git fetch upstream | |||
git reset --hard upstream/master | |||
</syntaxhighlight> | |||
タグ名でブランチ作成 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
git tag | |||
git checkout -b 新ブランチ名 refs/tags/タグ名 | |||
</syntaxhighlight> | </syntaxhighlight> |