如何在CentOS更新Git版本? 403致命的:HTTP请求失败(How to update

2019-10-23 02:59发布

这就是我下面怎么从地方推动改变Git和我不断收到此错误。

在命令行推现有资源库

git remote add origin https://github.com/myuserame/mytestrep.git
git push -u origin master

error: The requested URL returned error: 403 while accessing https://github.com/myuserame/mytestrep.git/info/refs

更换用户名和reponame

我已经GIT安装于CentOS 6.5。 但每当我试图把一些与git我得到403 Forbidden错误。 我看到,我使用Git版本较老,我想升级将有助于解决这一问题。

我现在面临的主要问题是究竟在这里提及,但我真的不得到答案。 我在git的创造了一个回购协议,创建本地和一些样本文件的文件夹。 随后的git init和提交。 但是,当我试图把我期待它要求登录的变化,而不是它throwsing 403致命的HTTP请求的错误。

推到Git的返回错误代码403致命的:HTTP请求失败

所以 -

我想升级CentOS的Git版本。 如何升级美分OS Git版本?

[root@localhost ~]# git version
git version 1.7.1
[root@localhost ~]# yum install git
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: ftp.riken.jp
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Package git-1.7.1-3.el6_4.1.i686 already installed and latest version
Nothing to do
[root@localhost ~]# 
文章来源: How to update git version on centOS? 403 fatal: HTTP request failed