diff --git a/Git/git.md b/Git/git.md index 4fa543f..7ae522f 100644 --- a/Git/git.md +++ b/Git/git.md @@ -105,6 +105,7 @@ def load_reference(name_or_id): `git commit`: save the snapshot to the project history `git commit -m "message"`: commit and provide a message `git commit -a`: automatically notice any modified (but not new) files and commit +`git commit -v|--verbose`: show unified diff between the HEAD commit and what would be committed `git diff `: show difference since the last commit `git diff `: show differences in a file since a particular snapshot @@ -155,6 +156,8 @@ def load_reference(name_or_id): `git log --all --graph --decorate`: visualizes history as a DAG `git log --oneline`: compact log +`git shortlog`: list commits by author + `git show `: output metadata and content changes of commit `git cat-file -p `: output commit metadata