Git Push.default is unset

Source: Internet
Author: User

Warning:push.default is unset; Its implicit value was changing in
Git 2.0 from ' matching ' to ' simple '. To squelch the This message
and maintain the behavior after the default changes, use:

git config--global push.default matching

To squelch this message and adopt the new behavior now, use:

git config--global push.default simple


Matching

The ' 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

The default for Git 2.x is simple, meaning that when you do not specify a branch for git push, only the current branch will be push to the code you get using git pull.

Modify default Settings

From the above message hint, we can modify the global configuration so that it does not prompt each push. For matching, enter the following command:

git config--global push.default matching

For simple, please enter:

git config--global push.default simple

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

Git Push.default is unset

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.