From 61748c9999283a85467ead79c0a2ea6a96d4eeba Mon Sep 17 00:00:00 2001 From: Dominik Porada Date: Mon, 27 Aug 2012 09:21:40 +0200 Subject: .gitconfig: Add `reb` alias Stolen from https://github.com/porada/dotfiles/commit/05162b585b2e9cd6a92f12e1c61e1f5687104a17. --- .gitconfig | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3