Hi everybody,
I'm back to CentOS after a long period during which I've been using mainly Slackware. I still use Slackware for teaching and for my local clients (on servers and desktops), but right now, I'm planning to update my own documentation about CentOS, which is still based on version 5.x.
First things first. For the moment I have a sandbox server in my office with a minimal installation of CentOS 6.5. It's a very stripped installation, and I want to keep it that way, installing things only as I need them. So I did *not* do a "yum groupinstall Base" after the initial installation.
I installed Git and Vim and cloned my Github repository for CentOS. But when I make a modification and want to push it to Github, I get the following error:
# git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kikinovak/centos/info/refs fatal: HTTP request failed
Now I think there must be some missing component in my CentOS installation, because my Slackware workstation in the same network can push things just fine.
Any idea what's missing here?
Cheers from the flooded South of France,
Niki
Le 11/10/2014 11:03, Niki Kovacs a écrit :
# git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kikinovak/centos/info/refs fatal: HTTP request failed
Now I think there must be some missing component in my CentOS installation, because my Slackware workstation in the same network can push things just fine.
I'll answer this myself, since I just stumbled over the solution. It seems that the version of Git shipping with CentOS has a little problem with Github. The solution is to add the username to the URL like this:
# git remote set-url origin https://kikinovak@github.com/kikinovak/centos.git
Cheers,
Niki
On 10/11/2014 04:27 AM, Niki Kovacs wrote:
Le 11/10/2014 11:03, Niki Kovacs a écrit :
# git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kikinovak/centos/info/refs fatal: HTTP request failed
Now I think there must be some missing component in my CentOS installation, because my Slackware workstation in the same network can push things just fine.
I'll answer this myself, since I just stumbled over the solution. It seems that the version of Git shipping with CentOS has a little problem with Github. The solution is to add the username to the URL like this:
# git remote set-url origin https://kikinovak@github.com/kikinovak/centos.git
I created a newer version of git for CentOS-6 that works better with github. Hopefully Red Hat will upgrade to this version for EL6:
http://people.centos.org/hughesjr/chromium/build/x86_64/Packages/
Thanks, Johnny Hughes
On 10/11/2014 12:03 PM, Niki Kovacs wrote:
# git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kikinovak/centos/info/refs fatal: HTTP request failed
As far as I understand, this error is server side because GItHub does not allow write operations over HTTP.
Can you please share your Git configs on the Slawk box? I think your "origin" is "ssh://" and not "https://"
Cheers from Madagascar.