[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e810033 4/5: Add a handy git command
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e810033 4/5: Add a handy git command |
Date: |
Sun, 3 Jan 2021 08:07:11 -0500 (EST) |
branch: master
commit e8100337db24b3340b4ebb730e3243b75b94ff11
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Add a handy git command
---
gwc/develop1.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 9ebed81..48086d7 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -172,6 +172,10 @@ git checkout .
git switch --detach [sha1sum]
+ # ...and undo that switch (after stashing any changes)
+
+git switch -
+
# Obliterate unpushed commits
git reset --hard origin/master