linux:git

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
linux:git [2019/08/19 07:25] ともやんlinux:git [2020/01/29 03:10] ともやん
行 5: 行 5:
 $ git pull $ git pull
 Already up to date. Already up to date.
 +</code>
 +
 +==== ローカルのファイルやディレクトリへの変更を破棄する ====
 +<code>
 +$ git checkout --force
 </code> </code>
  
行 18: 行 23:
 $ git reset --hard origin/master $ git reset --hard origin/master
 </code> </code>
 +ローカルの状態を確認する。\\
 +<code>
 +$ git status
 +On branch master
 +Your branch is up to date with 'origin/master'.
  
 +nothing to commit, working tree clean
 +</code>
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
  
  • linux/git.txt
  • 最終更新: 2023/09/01 13:18
  • by ともやん