From f7f091a2e6d3167fed4e1063dea266cdfff3ab55 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 19 Mar 2020 21:21:17 +0000 Subject: deploy: 6259d4ee6c06cc6ae4ce07484b75f7d327a6a52a --- git.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'git.html') diff --git a/git.html b/git.html index da23bb0..5b887d9 100644 --- a/git.html +++ b/git.html @@ -81,7 +81,7 @@ @@ -196,7 +196,10 @@ '--pretty=oneline --abbrev-commit' git log --graph ...... text based graph of commit history git log --decorate ... decorate log with REFs - git log -p <file> .... show commit history + diffs for <file> + +

File history

+
  git log -p <file> ......... show commit history + diffs for <file>
+  git log --oneline <file> .. show commit history for <file> in compact format
 

Patching

  git format-patch <opt> <since>/<revision range>
@@ -208,7 +211,7 @@
                              number instead '1'
     since spcifier:
       -3 .................. e.g: create a patch from last three commits
-      <comit hash> ........ create patch with commits starting after <comit hash>
+      <commit hash> ....... create patch with commits starting after <commit hash>
 
   git am <patch> ......... apply patch and create a commit for it
 
@@ -235,6 +238,8 @@
                                               <submod>, 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

  git ls-tree [-r] <ref> .... show git tree for <ref>, -r to recursively ls sub-trees
-- 
cgit v1.2.3