Log

Git Basic

January 1, 2020
Git, Log, Configuration

Git Basic # 実用的なコマンド # 頻繁に使うコマンド # $ git branch -a $ git checkout -b sample_branch_name # Edit source code $ git status $ git add . $ git commit -m "message" $ git push origin sample_branch_name git tag sample_tag_name git tag -n git push origin sample_tag_name 指定したフォーマットでコミット・ログを表示 # $ git log --graph --date=iso --pretty=format:"[%ad] %h %an : %s" 特定の注釈を含むコミットを検索 # $ git log --oneline --grep "<pattern>" コミット間の変更ファイル一覧を表示 # $ git diff --stat <Commit A> <Commit B> ファイル名のみ表示する場合 ...