[英]Eclipse EGit can't commit source, can only commit bin
I'm using Eclipse EGit with a bitbucket.org repo to develop a Minecraft mod with a friend. 我正在将Eclipse EGit与bitbucket.org存储库配合使用,以与朋友一起开发Minecraft Mod。 When I right click the project and click commit, it only lets me commit files from the bin folder.
当我右键单击该项目并单击提交时,它仅允许我从bin文件夹中提交文件。 If I right click the src folder in Eclipse, the commit option is grayed out.
如果我在Eclipse中右键单击src文件夹,则commit选项将显示为灰色。
How can I get EGit to let me commit my source files? 我如何获得EGit来提交源文件?
I ended up working around this by using Eclipse's built-in Git functionality, which was hard to discover that Eclipse even had, as the first search result for "using git with eclipse" is EGit. 最后,我通过使用Eclipse的内置Git功能解决了这个问题,很难发现Eclipse甚至没有,因为“将git与eclipse结合使用”的第一个搜索结果是EGit。
maybe you didn't press 'add index' on src folder. 也许您没有在src文件夹上按“添加索引”。 and make sure src is not in .ignore text file.
并确保src不在.ignore文本文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.