简体   繁体   中英

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. The project has about 100 files, but when I initially pushed into GitHub, only about 5 files made it up there. 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."

Is there an easy way to just select the project and push (forced or not) everything into GitHub?

Try to do it manually:

git push --force

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

If this does not work, check your .gitignore, maybe you are ignoring the most of the files.

"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 | Git | Push...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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