[已解决]不知何故,我设法没有“写入”权限的.git目录。 所以试图编写提交并获得反弹。
我一直在使用Eclipse几个月,但一直只是从CLI运行git。 我认为效率不高,而且我想使用eGit,所以我开始学习本教程(http://www.slideshare.net/loianeg/using-the-egit-eclipse-plugin-with-git-hub-2578587?从嵌入=)。
我试图添加一个现有的项目,所以我做了团队 - >共享项目 - > Git并选择了与我的项目相对应的.git。 Eclipse似乎已经把它捡起来了,好吧,但是当我尝试提交时,我会看到一个弹出窗口
“提交更改时遇到问题” - 发生内部错误。
当我点击详细信息时,它会说“在执行提交命令期间发生了内部错误发生的异常”
......我甚至不知道从哪一个开始。 我GOOGLE了错误,没有得到任何有用的东西。
任何人都知道如何解决这个问题,或者至少如何开始调试?
[SOLVED] Somehow, I managed to not have "write" permissions to the .git directory. So was trying to write the commit and getting bounced.
I've been using Eclipse for a few months, but had been just running git from the CLI. I decided that was inefficient and that I wanted to use eGit, so I started following this tutorial (http://www.slideshare.net/loianeg/using-the-egit-eclipse-plugin-with-git-hub-2578587?from=embed).
I'm trying to add an existing project, so I did Team-->Share Project-->Git and selected the .git corresponding to my project. Eclipse seems to have picked it up, okay, but when I try to commit, I get a popup saying
"Committing changes has encountered a problem' -- an internal error occured.
When I click details, it say "An internal error occurred Exception caught during execution of commit command"
...I don't even know where to start on this one. I googled the error and didn't get anything useful.
Anyone know how to fix this, or at least how to start debugging?
最满意答案
开始调试? 检查“错误”Eclipse视图以查看与该错误消息关联的完整堆栈跟踪错误视图示例:
修理它? 如果Exception是一个NPE(NullPointerException),如错误329611中所示,那么您可以在shell中尝试使用git commit -m“a message”,以便通过GUI实现最初的第一次提交。正如OP rogueleaderr提到的那样,错误视图和异常背后的确切堆栈跟踪足够了:
start debugging? Check the "Errors" Eclipse view for a full Stack Trace associate with that error message不知何故,我设法没有“写入” .git目录的权限。 所以试图编写提交并获得反弹。
Example of an Error View:
fix it? If the Exception is a NPE one (NullPointerException), like shown in bug 329611, then you can try a git commit -m "a message" in a shell, in order to get past that initial first commit with a GUI.
As the OP rogueleaderr mentions, the error view and the exact stack trace behind the exception was enough:
Somehow, I managed to not have "write" permissions to the .git directory. So was trying to write the commit and getting bounced.
更多推荐
发布评论