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.