うちのいぬ Tech Blog

Tech Blog of Uchinoinu/My dog

Git command for Deploy or PR merging

Diff of changed files

$ git diff --stat commit-new commit-old
$ git diff --stat --name-only commit-new commit-old
$ git diff --stat --ignore-blank-lines commit-new commit-old

Diff of content of file

$ git diff commit-old commit-new -- path/to/file

Show diff by a word with color

$ git diff --color-words  

Git Visibility

color

$ git config --global color.ui true

Log check

$ git log --graph --decorate --oneline

References

qiita.com

qiita.com