dotfiles/.local/bin/scripts/git-p
2022-07-06 10:21:35 +02:00

6 lines
121 B
Bash
Executable file

#!/bin/sh
git-l
if git rev-parse @{upstream} >/dev/null 2>&1
then git push "$@"
else git push --set-upstream "$@"
fi