]> git.netwichtig.de Git - user/henk/vcsh/git.git/blobdiff - .config/git/config
Add 'please' alias
[user/henk/vcsh/git.git] / .config / git / config
index 47d6b7c2a4373d01ee0ee007c1a6f1dca067ddb9..35c05f47dafde78b5de240b6cf94724b3c2ce9dd 100644 (file)
     cl = clone
     ci = commit
     co = checkout
+    cob = checkout -b
     br = branch
     r = reset
     cp = cherry-pick
     gr = grep -Ii
+    please = push --force-with-lease
 # }}}
 # tweak defaults {{{
     diff = diff --word-diff
@@ -43,6 +45,7 @@
 # commit {{{
     cm = commit -m
     cma = commit -a -m
+    cmv = commit -a -v
     ca = commit --amend
     amend = commit --amend
     caa = commit -a --amend -C HEAD
 # }}}
 # various useful {{{
     # last tag created
-    lasttag = describe --tags --abbrev=0
-    lt = describe --tags --abbrev=0
+    lasttag = "describe --tags --abbrev=0"
+    lt = "describe --tags --abbrev=0"
+
+    # tag logs
+    taglog = "log --tags --simplify-by-decoration --pretty='format:%ci %d'"
 
     # conflict/merges
     ours = "!f() { git co --ours $@ && git add $@; }; f"