diff options
Diffstat (limited to 'dev/git/work.html')
-rw-r--r-- | dev/git/work.html | 6 |
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> |