Git Configuration with eclipse--not able to push code from eclipse to remote git server

好久不见. 提交于 2019-12-10 22:59:50

问题


1)I have just configured GIT on my local centos 6.4 server and created a repository 2)Generated key also and kept at server 2)I am able to checkout code from this remote server to my dev machine in eclipse no problem till here

But when I tried to push code from Eclipse the it always says that "Can't connect to any repository: ssh://homepage@1.1.1.1/var/git/demo/ (An internal Exception occured during push: ssh://homepage@1.1.1.1/var/git/demo/: error occurred during unpacking on the remote end: unpack-objects abnormal exit)"

Not sure why ? Is there anything which i missed ?


回答1:


I fixed the problem by changing the permission on the directories




回答2:


It's definitely a permissions issue on the repo. I had the same problem, but was using Netbeans. Managed to temporarily fix it by giving 777 permissions to the repo.




回答3:


I also experienced this. It was due to something else, a bit stupid, really. I put a bare repository inside of a bare repository and expected them to behave individually. Once I moved the file structure of the inner bare repository out, it worked.

I just had to change the remote configuration of the local repository to point to the new location (outside of the other repo).




回答4:


I faced the same issue when checking into Git via Eclipse (EGit). The root cause turned out as space crunch on Git server. After deleting some unused projects we were able to checkin the code.



来源:https://stackoverflow.com/questions/17187528/git-configuration-with-eclipse-not-able-to-push-code-from-eclipse-to-remote-git

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!