1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Git 変更した差分を確認する

Posted at

##1.git addする前の差分を確認する
変更したファイルをaddする前の差分を確認するにはgit diffコマンドを使用する

% git diff

ファイル名を指定すると指定したファイルの差分が表示される。

% git diff test.html

##2.git add後の差分を確認する
ステージとリポジトリの差分を確認するにはオプションに--stagedを使用する

% git diff --staged
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?