LoginSignup
3
0

More than 5 years have passed since last update.

共有ブランチで作業する時に打つ魔法のコマンド

Last updated at Posted at 2017-12-05
git reset --hard HEAD && git clean -fd && git pull

チェックアウトしているブランチの状態が、originと同じになる

git reset --hard origin/<ブランチ名>

上記も最終的な結果は同じだが、ブランチ名でコマンドが変わるので
プログラマー以外に説明するときは、こっちは教えないほうがいいのかも?
(@_@)

3
0
1

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
3
0