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 trialLeigh Maher
21,830 PointsGit init in the themes folder?
Jesse says to initiate git in the theme. Does he mean just the theme folder or the whole project folder? So, is it this:
project/
or just here: project/wp-content/themes/my-theme
1 Answer
Sara Greer
16,032 PointsIt looks like he initialized git in his top directory, so in your example, project/. This will track changes to all files in the project, including WordPress core files, plugins, etc. Doesn't hurt to do it this way.
Leigh Maher
21,830 PointsLeigh Maher
21,830 PointsThanks Sara. I initialized it in the top directory, but I also created a .gitignore file, and told it to ignore all but the wp-content folder. I didn't see the need to track anything outside this folder, plus I want to store it in the cloud, so I don't want the wp-config. php to be visible publicly.