[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master de9be7c 4/4: Add some handy git commands
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master de9be7c 4/4: Add some handy git commands |
Date: |
Thu, 10 Dec 2020 16:13:24 -0500 (EST) |
branch: master
commit de9be7c934baf19be7d104f6d321bea61f0227cb
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Add some handy git commands
---
gwc/develop1.txt | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index a934d65..9ebed81 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -168,6 +168,10 @@ git checkout HEAD^ census_view.cpp
git checkout .
+ # Switch locally to a particular SHA1
+
+git switch --detach [sha1sum]
+
# Obliterate unpushed commits
git reset --hard origin/master
@@ -194,6 +198,10 @@ git add --chmod=-x some-file-name
git log -200 --graph --oneline --all --full-history
git log -200 --graph --oneline --all --simplify-by-decoration
+ # Show git's file permissions
+
+git ls-files --stage -- gwc/*.sh |less
+
# Second screen: only for updating local shadow copy of repository
#
# I use the last line repeatedly to keep my local shadow copy current