dotfiles/fish/functions/ggpnp.fish
2022-11-27 14:20:25 +08:00

5 lines
187 B
Fish

function ggpnp -d "git pull & push origin <current branch>"
set -l current_branch (__git.current_branch)
and git pull origin $current_branch
and git push origin $current_branch
end