相关疑难解决方法(0)

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

我能够通过HTTPS身份验证克隆此repo的副本.我做了一些提交,想要推回到GitHub服务器.在Windows 7 x64上使用Cygwin.

C:\cygwin\home\XPherior\Code\lunch_call>git push
Password:
error: The requested URL returned error: 403 while accessing https://MichaelDrog
alis@github.com/derekerdmann/lunch_call.git/info/refs

fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)

同时使用详细模式进行设置.我还是很困惑.

C:\cygwin\home\XPherior\Code\lunch_call>set GIT_CURL_VERBOSE=1

C:\cygwin\home\XPherior\Code\lunch_call>git push
Password:
* Couldn't find host github.com in the _netrc file; using defaults
* About to connect() to github.com port 443 (#0)
*   Trying 207.97.227.239... * 0x23cb740 is at send pipe head!
* Connected to github.com (207.97.227.239) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: C:\Program Files (x86)\Git/bin/curl-ca-bundle.crt
  CApath: none
* SSL …
Run Code Online (Sandbox Code Playgroud)

git dvcs github

608
推荐指数
23
解决办法
75万
查看次数

在ubuntu中安装最新版本的git

我目前的git版本1.7.9.5 ...

我需要升级到至少git 1.7.10才能让git clone命令正常工作

我尝试sudo add-apt-repository ppa:git-core/ppa升级但导致了这个:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 125, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
    curl.perform()
pycurl.error: (7, "couldn't connect to host")
Run Code Online (Sandbox Code Playgroud)

我应该做些什么来安装最新的git(进行升级)?

git ubuntu

167
推荐指数
2
解决办法
6万
查看次数

标签 统计

git ×2

dvcs ×1

github ×1

ubuntu ×1