git fetch
安全リモート取得(統合なし)
git fetch --all --prune
リモートの更新を取得するだけ(マージしない)。--pruneで消えた枝を整理。
実行例
git fetch --all --prune全リモートを取得し整理
書式
git fetch [--all] [--prune]
実行前の注意
取得のみ。作業ツリーは変わらない。
関連コマンド
- git pullリモート取り込み
- git remoteリモート設定
安全リモート取得(統合なし)
git fetch --all --prune
リモートの更新を取得するだけ(マージしない)。--pruneで消えた枝を整理。
git fetch --all --prune全リモートを取得し整理git fetch [--all] [--prune]
取得のみ。作業ツリーは変わらない。