* git-scm – The open source and defacto standard reference for git.
After cloning a GitHub repositority if you attempt to push, such as:
and get the following error:
git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/user_name/repository_name.git/info/refs fatal: HTTP request failed
using the following git command:
git remote set-url origin https://email@example.com/user_name/repository_name.git
should solve your issue. This hint is from StackOverflow. It is not the accepted answer but the second one and is much simpler.