diff --git a/.config/git/config b/.config/git/config index 5db767b..f845967 100644 --- a/.config/git/config +++ b/.config/git/config @@ -72,7 +72,6 @@ f = fetch fa = fetch --all - l = !git pull --rebase --autostash || (>&2 echo "Error - aborting rebase!" && git rebase --abort) lg = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --graph lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges diff --git a/.local/bin/git-l b/.local/bin/git-l new file mode 100755 index 0000000..16f19ac --- /dev/null +++ b/.local/bin/git-l @@ -0,0 +1,2 @@ +#!/bin/sh +git pull --rebase --autostash "$@" || (printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && git rebase --abort)