From 22b5c91c4f8787ca6af7d4aaca7650f8fa796c1d Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Mon, 28 Dec 2020 15:24:39 +0100 Subject: Add alias for fetch;rebase;push --- .config/git/config | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/git/config b/.config/git/config index aac12ae..54452a8 100644 --- a/.config/git/config +++ b/.config/git/config @@ -121,10 +121,11 @@ remp = remote prune remu = remote update - rb = rebase - rba = rebase --abort - rbc = rebase --continue - rbi = rebase --interactive + frbp = "!f() { git fetch; git rebase "$1"; git push --force-with-lease; }; f" + rb = rebase + rba = rebase --abort + rbc = rebase --continue + rbi = rebase --interactive r = reset r1 = reset HEAD^ -- cgit v1.2.3