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

Development Tools Introduction to Git First Commits Initializing a Repository

Whitley Bone
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Whitley Bone
Front End Web Development Techdegree Graduate 17,268 Points

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
seal-mask
.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!