[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
- [lmi-commits] [lmi] valyuta/004 updated (96d02bc -> 01d5219), Greg Chicares, 2021/01/10
- [lmi-commits] [lmi] valyuta/004 77c0696 4/6: Improve commentary on 7702 and 7702A rounding, Greg Chicares, 2021/01/10
- [lmi-commits] [lmi] valyuta/004 4b776cb 1/6: Not to worry, Greg Chicares, 2021/01/10
- [lmi-commits] [lmi] valyuta/004 3739e4b 2/6: Merge branch 'master' into valyuta/004, Greg Chicares, 2021/01/10
- [lmi-commits] [lmi] valyuta/004 4613e4d 3/6: Don't round what's already properly rounded, Greg Chicares, 2021/01/10
- [lmi-commits] [lmi] valyuta/004 3da66bb 5/6: Update notes on git commands,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/004 01d5219 6/6: Record speed measurements, Greg Chicares, 2021/01/10