Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 396 Bytes

2016-05-21-how-to-push-without-set-upstream-in-git.md

File metadata and controls

19 lines (13 loc) · 396 Bytes
layout
post

Tiered of typing git branch --set-upstream awesome-branch origin/awesome-branch?

Change your git setting to use the current branch name:

git config --global push.default current

And you can just use

git push

Thanks to zamith on stackoverflow.com.