config/git: convert l alias to script
This commit is contained in:
parent
379e37a093
commit
1dd3f3d4e7
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
2
.local/bin/git-l
Executable file
2
.local/bin/git-l
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
git pull --rebase --autostash "$@" || (printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && git rebase --abort)
|
Loading…
Add table
Reference in a new issue