From 2b0402468e955a7731b372f198d16aa34cb101cf Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Fri, 26 Mar 2021 12:56:36 +0100 Subject: [PATCH] Add `shortlog` and `commit --verbose` commands --- Git/git.md | 3 +++ 1 file changed, 3 insertions(+) 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