mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 03:42:56 +00:00
7 lines
253 B
Fish
7 lines
253 B
Fish
|
function git-push-upstream --description "Create upstream branch"
|
||
|
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
|
||
|
end
|