dotfiles/.local/bin/scripts/git-l
2023-04-10 18:31:48 +02:00

4 lines
148 B
Bash
Executable file

#!/bin/bash
git rev-parse @{upstream} >/dev/null 2>&1 ||
git branch --set-upstream-to=@{push}
git pull --rebase --autostash "$@" 2> >(head -4 >&2)