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

6 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