Git@OSC Push问题

最近使用Git@OSC是发现 clone,commit正常,但是无法push,总体是输入密码,然后认证失败。

错误信息如下:

d:\workspace\java\CommonEvent>git push origin master
Password for 'https://[email protected]':
fatal: Authentication failed for 'https://git.oschina.net/jmpp/CommonEvent.git/'

尝试了很久,发现push时指定一下在Git@OSC的用户名,然后再输入对应的密码就可以了,如下:

git push https://jmpp@git.oschina.net/jmpp/CommonEvent.git


其中jmpp是我在Git@OSC的用户名。

你可能感兴趣的:(git,push,gitosc)