Niki Kovacs
2014-Oct-11 09:03 UTC
[CentOS] Hi again & problem with minimal CentOS and Github
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 -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
Niki Kovacs
2014-Oct-11 09:27 UTC
[CentOS] Hi again & problem with minimal CentOS and Github
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 at github.com/kikinovak/centos.git Cheers, Niki -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
Mihamina Rakotomandimby
2014-Oct-13 05:48 UTC
[CentOS] Hi again & problem with minimal CentOS and Github
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 failedAs 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.