$ git push Warning:push.default has not been set, its default value in Git 2.0 has changed from ' matching ' to ' simple '. To no longer display this information and maintain the traditional habit of

Source: Internet
Author: User
Tags using git

Just using git push error

"$ git push
Warning:push.default has not been set, its default value in Git 2.0 has been from ' matching '
Change to ' simple '. To no longer display this information and maintain the traditional habits, make the following settings:

git config--global push.default matching

To no longer display this information and start using new habits from now on, set:

git config--global push.default simple

When Push.default is set to ' matching ', git pushes and remotely all
Local branch.

Starting with Git 2.0, git defaults to a more conservative ' simple ' mode, pushing only the current
Branch to a remote association with the same name, that is, ' git push ' pushes the current branch.

See ' git help config ' and find ' push.default ' for more information.
(the ' simple ' mode was introduced by Git version 1.7.11. If you sometimes want to use an older version of Git,
In order to maintain compatibility, please replace ' simple ' with ' current '

Sign_and_send_pubkey:signing Failed:agent refused operation
Permission denied (PublicKey).
Fatal:could not read from remote repository.

Sure you have the correct access rights
and the repository exists.


Stack overflow Find the solution:

Https://stackoverflow.com/questions/30068298/git-fatal-could-not-read-from-remote-repository-please-make-sure-you-have-th

git remote Set-url origin https://github.com/<user_name>/<repo_name>.git


The disadvantage is that you will need to enter GitHub's username and password for each push at a later time. Not finding the right solution for the moment, just make it right.

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.