dotfiles/modules/shell/fish/functions/git-push-upstream.fish
2022-05-06 09:44:21 -04:00

5 lines
167 B
Fish

set -l branch (git branch 2>/dev/null | grep '^\*' | colrm 1 2)
set -l command "git push --set-upstream origin $branch"
commandline -r $command
commandline -f execute