简体   繁体   English

IntelliJ IDEA强制推送到GitHub

[英]IntelliJ IDEA Force Push into GitHub

I'm using IntelliJ IDEA 14. I have a project in a local GIT directory, and I have a corresponding repository on GitHub. 我正在使用IntelliJ IDEA14。我在本地GIT目录中有一个项目,并且在GitHub上有一个相应的存储库。 The project has about 100 files, but when I initially pushed into GitHub, only about 5 files made it up there. 该项目大约有100个文件,但是当我最初推入GitHub时,只有大约5个文件组成了该文件。 I now need to push the rest of the files into GitHub, but when I try to do that, IntelliJ keeps telling me "Nothing to Commit." 现在,我需要将其余文件推送到GitHub,但是当我尝试这样做时,IntelliJ总是告诉我“没什么可提交的”。

Is there an easy way to just select the project and push (forced or not) everything into GitHub? 有没有一种简单的方法可以选择项目并将所有内容(强制或不强制)推送到GitHub?

Try to do it manually: 尝试手动进行操作:

git push --force

http://git-scm.com/docs/git-push http://git-scm.com/docs/git-push

If this does not work, check your .gitignore, maybe you are ignoring the most of the files. 如果这不起作用,请检查您的.gitignore,也许您忽略了大多数文件。

"Nothing to commit" is a message that can appear when you're trying to commit, not push. “什么都没有提交”是您尝试提交而不是推送时出现的消息。 To push the changes you've already committed, use the "Push Commits" dialog available as VCS | 要推送您已经提交的更改,请使用“推送提交”对话框,该对话框在VCS | Git | Git | Push... 推...

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

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