dotfiles/modules/common/shell/fish/functions/git-push-upstream.fish

5 lines
179 B
Fish
Raw Normal View History

2022-04-30 14:21:43 +00:00
set -l branch (git branch 2>/dev/null | grep '^\*' | colrm 1 2)
2022-05-17 00:27:26 +00:00
and set -l command "git push --set-upstream origin $branch"
and commandline -r $command
and commandline -f execute