About the git-2.6.3-64-bit version of Git push

Source: Internet
Author: User
Tags using git

When I recently learned about Git and learned to GitHub, there was a command that git push would run out following questions:

Upon enquiry:

The matching--"Matching" parameter is the default behavior of Git 1.x, which means that if you perform a git push without specifying a branch, it will push all your local branches to the corresponding matching branch in the remote repository. simple-- while git 2.x defaults to simple, my version is 2.x, meaning that when executing git push does not specify a branch, only the current branch will be push to the code you get using git pull.

Solution:

matching--

git config--global push.default matching

simple--

git config--global push.default simple

Via Http://www.oschina.net/news/45585/git-2-x-change-push-default-to-simple

About the git-2.6.3-64-bit version of Git push

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.