Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Introduction to Git First Commits Initializing a Repository

So are you supposed to "name" a repository?

When I am in GitHub in Google Chrome, it asks to name the repository. Are you supposed to do that somehow via the command line?

1 Answer

Jamie Reardon
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

I think you can only name the remote repositories via github. Since this will be the remote repository you will be pulling and pushing from.

You will be able to obtain the link to that remote repo so you can start cloning, pulling, and pushing to it from your locally.

You can however name local repos. Git uses the name of the directory folder where you use the command git init to create a new repo.

You can name the remote repos locally when adding a link to the remote repo so that your local repo recognizes which one to pull/push to.

Although it is probably best to keep those names the actual name of the remote repo on GitHub instead to save confusion.

My answer is only to my knowledge after finishing Git terminal introduction and currently on the Git Branches course. Therefore someone may know more clearer than me, but nevertheless hope this helps and I believe it may all be correct!