简体   繁体   English

eclipse egit某些文件不会提交到github

[英]eclipse egit some files won't commit to github

I have a github repository and it is integrated into eclipse. 我有一个github存储库,它已集成到eclipse中。 I sometimes create files in other text editors, then refresh my project and then left click the project to get >Team>Commit. 有时我会在其他文本编辑器中创建文件,然后刷新我的项目,然后左键单击该项目以获取> Team> Commit。 This usually gets every file. 通常这会获取每个文件。 Unfortunately, I have several files that failed to commit this way. 不幸的是,我有几个文件无法通过这种方式提交。 I don't see them on github and I can see the following when I do Team Synchronizing. 我在github上没有看到它们,在进行团队同步时可以看到以下内容。

在此处输入图片说明

There is nothing I can do to get these files to commit to github. 我没有办法使这些文件提交到github。 Can anyone see why? 谁能看到原因? These is no error message or warning or anything. 这些不是错误消息,警告或其他任何内容。 When I go to commit these files, they don't appear in the window that shows everything that needs to be commited (ie is new or has changes). 当我提交这些文件时,它们不会出现在显示需要提交的所有内容的窗口中(例如,是新的或有更改)。

In Eclipse EGit, the preferred way to create commits is by using the Staging View . 在Eclipse EGit中,创建提交的首选方法是使用暂存视图 It shows a clear view of what files are staged and ready to commit and what changed files are not. 它清晰地显示了已暂存的文件和准备提交的文件以及未更改的文件的视图。 It supports drag-and-drop to move files from un-staged to staged, as well as commit and commit+push directly in the view. 它支持拖放操作,以将文件从未暂存移至暂存,以及直接在视图中执行commit和commit + push。

Open the Staging View and see if those files are in the Unstaged section. 打开暂存视图,查看那些文件是否在“未暂存”部分中。 If so, drag them to Staged and then commit. 如果是这样,将它们拖到暂存,然后提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM