28
23

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 5 years have passed since last update.

[Git]ファイルの変更履歴を行単位(orコミット単位)で調べる方法

Posted at

1.ファイルの「行単位」の変更履歴を確認

git blame ファイル名

このコマンドにより、各行の

コミットのハッシュ値 (名前 日時   行数) ファイルの中身

が閲覧できる。

2.「コミット単位」の変更履歴を確認

コミットのハッシュ値をgit blameで確認し、

git show コミットのハッシュ値

を叩けばコミット単位で変更を確認できる。

28
23
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
28
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?