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

JavaScript Express Basics Using Templates with Express Using Pug in Your Express App

Why does Andrew already a .gitignore in his files

I opened my project folder in Visual Studio Code (same editor as Andrew) and he already has a .gitignore file and I do not. Why does he have this already and do we need to make one as well? (This is my first time going through this course, so I don't know if he talks about it in a later video yet)

1 Answer

I am not too sure which video you are referring to but below is a link to a useful resource which shows you how to add gitignore and git.

https://github.com/codepath/ios_guides/wiki/Using-Git-with-Terminal https://www.youtube.com/watch?v=N6wQ28h-MmE&t=108s

I know how to add gitignore and I already have git, I just wonder why his project already has a .gitignore file? Is there a way to have it automatically, or did he just add it without actually showing it in this course?