LoginSignup
2
2

More than 5 years have passed since last update.

gitで強制的にpullする

Posted at

ローカルでの修正を破棄し、強制的にpullする

ビルドなどで自動生成されたファイルの影響で、git pull時に衝突が発生した際の対処方法についてのメモです。
ローカルでの修正を全て破棄して、masterリポジトリからpullします。

$ git checkout -- .
$ git pull origin master
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2