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 trialChen Wang
7,371 PointsLocation of a git repository
I'm new to git and github.
When I follow this tutorial, I have a question about the location of repository.
where should I put the repository in my local environment? I know it can be anywhere. I just wonder if there is a routine way to do it. In other word, is it a good way to put all git repository into one file, maybe called "git repositories". Or it doesn't matter, just store them in different locations?
Now let's assume I already have a finished project, maybe a small website. How should I create a repository for it? I mean "copy it to a new repository", or "cut it into a new repository"?
1 Answer
Chyno Deluxe
16,936 PointsI created a specific folder for all my repos on an external hard drive. Its easier for me to manage when they are all in one folder.
use your command prompt to locate and enter your websites folder, then enter git init this will initialize the git repository and you may begin using it as a repository.
I hope this helps.
Chen Wang
7,371 PointsChen Wang
7,371 PointsIt does help me. ^_^
Thanks for your time.