about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-06-08 01:53:50 +0100
committerSilvino <silvino@bk.ru>2019-06-28 03:55:41 +0100
commit21de4609ddf376d8130ed733aa1d155101a0c7da (patch)
treeb5788ad9001e2d2e37cc425ac6915806496c67e9
parenta681b4acd90664a8e3e24eba61221ee9b78e934e (diff)
downloaddoc-21de4609ddf376d8130ed733aa1d155101a0c7da.tar.gz
dev git added reset to work doc
-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>