git 错误

Error 1:

[artogrid@localhost dev]$ git clone http://[email protected]:7990/scm/cswap/cswapserver.git

Initialized empty Git repository in /home/artogrid/workspace/dev/cswapserver/.git/

 

(gnome-ssh-askpass:12345): Gtk-WARNING **: cannot open display:

Solution:

[root@localhost dev]# unset SSH_ASKPASS

 

Error 2:

2016-03-17 10:01:43.208 | + /workspace/devstack/functions-common:git_timed:L602:   die 602 'git call failed: [git clone' git://git.openstack.org/openstack/requirements.git '/opt/stack/requirements]'
2

Solution:

有可能Git协议端口9418被防火墙屏蔽,

用http协议取代git协议,可执行如下命令:

git config --global url."https://".insteadOf git://

 

Error3:

Mac sourcetreeGit push密码错误

https://username@***.com/***
改为https://username:password@***.com/***

你可能感兴趣的:(Git)