push failed The requested URL returned error: 403

Once the code is written, synchronize the local repository with Github.

 git push -u origin master

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/user/test.git/info/refs
This is due to permission issues, you can modify. Git /config file appends username and password:
1) Edit. Git /config file
2) Find the URL variable under [Remote “Origin”]
3) modify the url = https://github.com/user/test.git, modified to url = ssh://[email protected]/user/test.git, finished modification
4) Push origin Master through Git to synchronize, which has been successful

Read More: