git fetch コマンド
参考:
git-fetch | Git Documentation [Official]
使い方
参考:
git のリモートリポジトリの更新を確認する – Qiita
シャローフェッチ
ブランチをシャローフェッチする。
$ git fetch origin master --depth 1
アンシャロー
$ git fetch --unshallow
参考:
重厚長大な git レポジトリをさらっと clone して作業し始める – Qiita
shallow clone したリポジトリを、あとで完全に fetch する – Qiita
git clone –depth と git fetch –unshallow | pione30’s blog
既存の git リポジトリを短時間でコピーする。| ksaito の日記
shallow clone してすぐ unshallow する | pockestrap
How to convert a Git shallow clone to a full clone? – Stack Overflow
異なる名前のローカルブランチに fetch する
my_branch
に origin/master
の状態を上書きする。
$ git fetch origin my_branch:master
参考:
Git checkout and merge without touching working tree – Stack Overflow