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

fatal: HTTP request failed

Change your ~/.gitconfig as follows:

$ cat ~/.gitconfig 
	name = xxx
	email =
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
Leave a Reply

Your email address will not be published. Required fields are marked *