about summary refs log tree commit diff stats
path: root/dev/git/work.html
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-06-28 03:56:08 +0100
committerSilvino <silvino@bk.ru>2019-06-28 03:56:08 +0100
commit2251cea98a0d9ecf9f94db15fa6dc526e75d038d (patch)
treeb5788ad9001e2d2e37cc425ac6915806496c67e9 /dev/git/work.html
parenta681b4acd90664a8e3e24eba61221ee9b78e934e (diff)
parent21de4609ddf376d8130ed733aa1d155101a0c7da (diff)
downloaddoc-2251cea98a0d9ecf9f94db15fa6dc526e75d038d.tar.gz
dev git revision
Diffstat (limited to 'dev/git/work.html')
-rw-r--r--dev/git/work.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/git/work.html b/dev/git/work.html
index 7f97af5..3111eaf 100644
--- a/dev/git/work.html
+++ b/dev/git/work.html
@@ -82,6 +82,12 @@ gloga () {
     $ git rebase -i oldest_commit_to_rewrite
     </pre>
 
+    <p>Undo last commit;</p>
+
+    <pre>
+    $ git reset --soft HEAD~1
+    </pre>
+
     <h2 id="logdiff">2.2. Logs, diff commits</h2>
 
     <p>Create patch files to target branch/tag/ref;</p>