aboutsummaryrefslogtreecommitdiffstats
path: root/.gitconfig
diff options
context:
space:
mode:
authorDominik Porada <porada@mailinator.com>2012-08-27 09:21:40 +0200
committerMathias Bynens <mathias@qiwi.be>2012-08-27 09:22:31 +0200
commit61748c9999283a85467ead79c0a2ea6a96d4eeba (patch)
treefa14b6171ded95d72a1e079aef9b67be2033a301 /.gitconfig
parent55ca924f90ff4f53a7fe608edc8005b17d0d107f (diff)
downloaddotfiles-61748c9999283a85467ead79c0a2ea6a96d4eeba.tar.gz
dotfiles-61748c9999283a85467ead79c0a2ea6a96d4eeba.tar.bz2
dotfiles-61748c9999283a85467ead79c0a2ea6a96d4eeba.zip
.gitconfig: Add `reb` alias
Stolen from https://github.com/porada/dotfiles/commit/05162b585b2e9cd6a92f12e1c61e1f5687104a17.
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 518ae65..09e7dbe 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -19,6 +19,8 @@
remotes = remote -v
# Credit an author on the latest commit
credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
+ # Interactive rebase with the given number of latest commits
+ reb = "!r() { git rebase -i HEAD~$1; }; r"
# Undo a `git push`
undopush = push -f origin HEAD^:master