Git cheat sheet: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
git fetch upstream
git reset --hard upstream/master
</syntaxhighlight>
 
タグ名でブランチ作成
<syntaxhighlight lang="bash" enclose="div">
git tag
git checkout -b 新ブランチ名 refs/tags/タグ名
</syntaxhighlight>