Get GIT To Use Origin/master Default

Posted by Weston Ganger on August 27, 2015

I got annoyed having to add the branch when pushing or pulling because on certain projects its only origin/master

git branch --set-upstream-to origin/master
# OR When Pushing
git push -u origin master

Now you can simply use git pull or git push
Related External Links:

Posted in Linux and Tagged with linux git 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts