SysTutorials Forums QA Git push error under CENTOS 6.7

$ git add file
$ git commit -m "xxxx"
$ git push

error: The requested URL returned error: 403 Forbidden while accessing https://github.com

fatal: HTTP request failed

Change your ~/.gitconfig as follows:

$ cat ~/.gitconfig 
[user]
	name = xxx
	email = xxx@gmail.com
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url= https://name@github.com/name/xxx.git
Answered by harryxiyou.
Reply To: Git push error under CENTOS 6.7
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Please share if you like this post: