summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-03-10 13:33:42 +0100
committerTobias Klauser <tklauser@distanz.ch>2021-03-10 13:34:41 +0100
commitd12fc485b3dcb9216584d502ac3cab81fee37960 (patch)
tree0b6d434da0f7537ab7b186ca284736311e49cdca /.gitconfig
parentf2cf1069b2f26edeeaa7ca5d0e8d32f3e0554fcb (diff)
Order aliases alphabetically, add pushf and ri
Taken from https://www.linux-magazin.de/ausgaben/2019/04/tipps-und-tricks-2/
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitconfig b/.gitconfig
index 086ca86..901dfc8 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -22,18 +22,20 @@
ll = log --decorate --graph --pretty=oneline
lp = log -p
ls = ls-files
+ pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
+ pushf = push --force-with-lease
+ ri = rebase --interactive --autosquash
s = status -s
st = status
+ today = commit --amend --date=now --no-edit
up = pull --rebase --autostash --prune origin master
cr = codereview
change = codereview change
gofmt = codereview gofmt
mail = codereview mail -trust
pending = codereview pending
- pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
submit = codereview submit
sync = codereview sync
- today = commit --amend --date=now --no-edit
[pretty]
fixes = Fixes: %h (\"%s\")