linux:git

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
linux:git [2019/02/23 09:44] ともやんlinux:git [2019/09/13 09:22] – [強制的にリモートブランチの最新に合わせる] ともやん
行 17: 行 17:
 <code> <code>
 $ git reset --hard origin/master $ git reset --hard origin/master
 +</code>
 +ローカルの状態を確認する。\\
 +<code>
 +$ git status
 +On branch master
 +Your branch is up to date with 'origin/master'.
 +
 +nothing to commit, working tree clean
 </code> </code>
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
行 73: 行 81:
 ===== 参考文献 ===== ===== 参考文献 =====
 [[http://www-creators.com/archives/1097|git pull を強制し、リモートでローカルを上書きする方法 | WWWクリエイターズ]]\\ [[http://www-creators.com/archives/1097|git pull を強制し、リモートでローカルを上書きする方法 | WWWクリエイターズ]]\\
- 
  
  • linux/git.txt
  • 最終更新: 2023/09/01 13:18
  • by ともやん