DEV Community

Discussion on: Your favorite `git` aliases?

Collapse
 
jef profile image
Jef LeCompte

alias gpc='git push --set-upstream origin "$(git-branch-current 2> /dev/null)"'

if you don't have anything, this would suffice alone. i always forget how to push my new branch to remote...