From 70883a31c72d9427055b41ca50ba986cd808cde4 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 19 Mar 2020 20:07:07 +0100 Subject: updated git --- src/git.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/git.md b/src/git.md index 47c99e4..d76ae77 100644 --- a/src/git.md +++ b/src/git.md @@ -60,7 +60,12 @@ '--pretty=oneline --abbrev-commit' git log --graph ...... text based graph of commit history git log --decorate ... decorate log with REFs - git log -p .... show commit history + diffs for +``` + +## File history +```markdown + git log -p ......... show commit history + diffs for + git log --oneline .. show commit history for in compact format ``` ## Patching @@ -74,7 +79,7 @@ number instead '1' since spcifier: -3 .................. e.g: create a patch from last three commits - ........ create patch with commits starting after + ....... create patch with commits starting after git am ......... apply patch and create a commit for it @@ -103,6 +108,8 @@ , this will pull origin/HEAD or a branch specified for the submodule + git diff --submodule ...................... show commits that are part of the + submodule diff ``` ## Inspection -- cgit v1.2.3