vkapustin vkapustin - 2 years ago 90
Java Question

How to not push certain directories/files to Github?

Specifically for Java Eclipse projects.

Is there a reason to have anything other than src and lib directories on github??

How much value does providing /bin, /settings .classpath, .project, etc.??

I'd like to have them on my local, but not displayed on github. Is there a way to do this?



contents of my .gitignore file (which is located in my local git project directory):


I did a git add (to add this new .gitignore file) and a git commit to my local repo.

However, when I push to my remote github (https://github.com/VKkaps/Breakout) now, I still see everything including the .gitignore file now? Help?

Answer Source

The answer is .gitignore file. See: https://git-scm.com/docs/gitignore for more information.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download