dotfiles/.local/bin/scripts/git-p
2021-05-06 08:29:05 +02:00

5 lines
115 B
Bash
Executable file

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