dotfiles/.local/bin/scripts/git-p
2021-03-12 10:21:23 +01:00

5 lines
105 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