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 trialMichael Hosford
2,531 PointsGit: what files NOT to track?
Aside from configuration files which contain passwords or other private information, are there other files that generally shouldn't be included in version control tracking?
For example, I have a project that uses jQuery. I'm not going to be making any changes to jQuery, but the project won't work correctly without it. (Of course, it won't work correctly without the aforementioned config file either.) Should I include jQuery (or other "black box" type libraries) in version control?
Thanks in advance-- Michael
P.S. It seems to me that this should have been covered in the Git Basics course. And, while it was useful to know that git-flow exists, I don't think I really needed to take a "challenge" on it. Otherwise, I found the course helpful. :)
Edit: I couldn't figure out how to tag this post as being related to the Git Basics course. How do you do that?
1 Answer
Kevin Korte
28,149 PointsGenerally, no you wouldn't track vender library like jQuery. This is where a package manager really comes into play. You could not track the dependencies in Github, but have that staged in the package managers son file, and than a new developer could grab your repo, run a command on their computer to install all of the dependencies and the exact version they need, and than everything would work again. That's typically how it would work.
You can check in dependencies, but its ideal not to.
I think to tag the question to a course, you have to be on the specific lesson first, and than start the question from there.