dotfiles/.local/bin/scripts/git-p

7 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