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
asked Oct 24, 2015 by harryxiyou (5,830 points)

1 Answer

 
Best answer

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 Oct 24, 2015 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...