Can't connect to any repository: ,cannot open git-receive-pack

来源:互联网 发布:华泰证券交易软件 编辑:程序博客网 时间:2024/05/29 15:08

今天在使用Eclipse提交代码到git上的时候,出现这样一个问题。

1.Can't connect to any repository: ,cannot open git-receive-pack

解决:

Window->preference->Team->Git->configuration->user setting

看看你的username和useremail设置的正确吗?


2.! [rejected] master -> master (non-fast forward)

解决:

这个是因为你提交的时候,git上面有你本地没有的内容,所以你应该先fetch,然后merge。然后再上传就可以了。



1 1
原创粉丝点击