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

5 lines
115 B
Bash
Executable file

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