如何轻松地在Eclipse Neon中进行Git提交 [英] How to easily Git commit in Eclipse Neon
问题描述
我刚从火星升级到Eclipse霓虹灯。之前我可以从团队菜单中选择提交,并且该对话框会为我想要演示的文件提供复选框。我可以轻松地选择全部选择,并且所有文件都将上演。事实上,如果我没有记错的话,已经在仓库中的文件已经被检查过。
现在Eclipse Neon不会弹出一个对话框,而是显示一个Git分期查看标签。修改后的文件被列为Unstaged Changes。是的,我熟悉Git工作流程,但这似乎是Eclipse UI的倒退。如何登台档案?我是否必须选择它们并将它们拖放到分阶段更改?我必须右键单击它们并将它们添加到索引中吗?
无论发生什么,它都不会让我触及提交按钮 - 它会抱怨没有未分期的文件。我错过了一些提交方式,就像在Eclipse Mars中那样容易,自动登台文件或者至少有一个全部舞台按钮?
暂时我在Windows> Preferences> Team> Git> Committing中禁用Staging View,而是选择使用旧式的提交对话框(来自Eclipse Mars的那个)。我没有时间在附加的列表框选择,鼠标点击和上下文菜单选择上花费时间来提交我的代码。
我希望有人提出了一个更好的答案。 Git Staging View很有趣......但如果它让我失望的话,那就不是了。
I just upgraded to Eclipse Neon from Mars. Earlier I could just select "Commit" from the "Team" menu, and the dialog would provide checkboxes for the files I wanted to stage. I could easily hit "select all" and all files would be staged. In fact, the files already in the repository would already be checked, if I remember correctly.
Now Eclipse Neon doesn't pop up a dialog, but shows a "Git Staging" view tab. The modified files are listed as "Unstaged Changes". Yes, I'm familiar with the Git workflow, but this seems a step backwards for the Eclipse UI. How do I "stage" the file? Do I have to select them and drag-and-drop them to "Staged Changes"? Do I have to right click on them and add them to the Index?
Whatever happens, it won't let me just hit the "Commit" button---it will complain that there are no unstaged files. Am I missing some way to commit that was as easy as it was in Eclipse Mars, with auto-staging of files or at least a "stage all" button?
For the time being I'm disabling the Staging View in Windows > Preferences> Team > Git > Committing, opting to use the old-fashioned Commit Dialog (the one from Eclipse Mars) instead. I don't have time to muck around with extra listbox selections, mouse clicks, and context menu selections just to commit my code.
I hope someone else comes up with a better answer. The Git Staging View was interesting... but not if it slows me down.
这篇关于如何轻松地在Eclipse Neon中进行Git提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!