LoginSignup
0
0

More than 1 year has passed since last update.

git pullとgit fetchの差異

Posted at

git pullとgit fetchの差異

pullとfetchが似た機能をするコマンドのようだが違いは以下の通りである。

なるべくfetch後、pullをしながら2つを適切に使用することが良いという。

  1. git fetch

ローカルファイルには触れず、襟の変更内訳だけを確認する場合、使用

ローカルディレクトリに変更された内訳を持ってこない


2. git pull

ローカルファイル+羽根変更内訳の確認

ローカルディレクトリに変更された内訳を取得(変更された内容を併合)

変更された内訳と同じファイルに触れた場合、衝突発生

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