Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Which project files should be included in a GitHub repository?

Hi there,

when create a repository from IntelliJ, which files and folders of the project should go into my repositories?

I'm talking about a Gradle project.

For example, the libraries don't need to go onto GitHub, because when I upload the build.gradle file, people know about the dependencies and can download the libraries. So, what other files can I omit?

Would love to hear your thoughts on this :)

Roman

1 Answer

I recommend looking here https://www.gitignore.io/

Hope this helps. if this answers your question, please mark question as answered.

okay, watched the tutorial and created a .gitignore file. thanks a lot :) I still have a lot to learn about Git and GitHub though. Is there a way to remove the files (which I'm now ignoring), if they are already in my GitHub repository? from a previous push