Error: Push.default is unset; The solution of its implicit

Source: Internet
Author: User
Tags using git
Full error log:
Warning:push.default is unset; Its implicit value was changing in
Git 2.0 from ' matching ' to ' simple '. To squelch this message
and maintain the current 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 si Mple
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. And simple is the default for Git 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. Follow the prompts to run: git config–global push.default matching or: Git config–global push.default simple, then push will not have a warning. the difference between push.default matching and push.default simple: The Push.default setting maching means: git push Will push all your local branches to the remote host that corresponds to the name. This means that you may inadvertently push some branch that you did not intend to push. The Push.default set to simple means that git push simply push the current branch to the corresponding branch from which git pull was pulling down, and the process also checks to see if the names of the branches correspond to each other.

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.