lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/004 3da66bb 5/6: Update notes on git command


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/004 3da66bb 5/6: Update notes on git commands
Date: Sun, 10 Jan 2021 19:09:18 -0500 (EST)

branch: valyuta/004
commit 3da66bbf3f0b6672d0130e023bc64fcce68db8e5
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Update notes on git commands
    
    See:
      https://lists.nongnu.org/archive/html/lmi/2021-01/msg00002.html
---
 gwc/develop1.txt | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 48086d7..594cc6d 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -168,11 +168,13 @@ git checkout HEAD^ census_view.cpp
 
 git checkout .
 
-  # Switch locally to a particular SHA1
+  # Switch locally to a particular SHA1 (and 'make clean' now!)
 
 git switch --detach [sha1sum]
 
-  # ...and undo that switch (after stashing any changes)
+  # ...and undo that switch (after stashing any changes), but this
+  # shorthand works only if restoring to a branch--not to a detached
+  # sha1sum
 
 git switch -
 
@@ -200,7 +202,10 @@ git add --chmod=-x some-file-name
   # Show branch topology (last 200 commits, e.g.)
 
 git log -200 --graph --oneline --all --full-history
-git log -200 --graph --oneline --all --simplify-by-decoration
+
+  # Show only commits directly on an ancestry chain
+
+git log --ancestry-path cf62b4482^..96d02bc3
 
   # Show git's file permissions
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]