dotfiles/modules/common/shell/fish/functions/git-push-upstream.fish
2023-02-20 20:37:37 -05:00

5 lines
179 B
Fish

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