ファイル差分
BranchまたVersionの差分一覧を取得
Branch 差分
$ git branch -a
* MVP1.0
master
step3
remotes/origin/HEAD -> origin/master
remotes/origin/add-sonarqube
remotes/origin/feature-Jest
remotes/origin/feature/MVP1.0
remotes/origin/feature/STG
remotes/origin/feature/step3
remotes/origin/master
remotes/origin/master_0630
remotes/origin/pseudo
#local branch
$ git diff --name-only --diff-filter=M MVP1.0 step3
#remote branch
$ git diff --name-only --diff-filter=AMR MVP1.0 origin/feature/step3
※ A-Add M-Modify R-Remove
Version diff
履歴チェック
$ git log --pretty=format:"%h - %an, %ar : %s"
19adbd7 - ko.shunkyou, 3 hours ago : 企業ユーザー管理の単体指摘対応
b7480dd - ko.shunkyou, 8 hours ago : メール通知とAuth0認証の修正
e15f955 - ko.shunkyou, 11 hours ago : Merge branch 'feature/MVP1.0' of https://gitlab.devops.zdf.jp/minna_bank/application/enterpriseib/service/sfdc into MVP1.0
8a150d5 - ko.shunkyou, 11 hours ago : 移行テストで更新
7820b60 - ko.shunkyou, 27 hours ago : fontplus.js削除
git diff --name-only --diff-filter=AMR 19adbd7 8a150d5
特定ファイル履歴
参照: https://www-creators.com/archives/1782
git log --word-diff --author xxx -n 3 -p path/to/file.txt