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 trialZoDo .
13,135 Pointsfatal: 'C: /Users/Lorenzo/our_clone' is not a valid remote name
Hi everyone, I`m not able to follow the steps of this video on my own Windows machine when I create the our_clone remote repository the error message of the title appears, I have already double checked the syntax plenty times. git remote add ~/our_clone ~/our_clone_project any ideas?
1 Answer
nico dev
20,364 PointsI am 99% sure this message is going to be way too late, and that you probably already figured this all out by yourself; however, I am going to write it anyway, just in case the 1% prevails here :)
The first arg you want to pass to the "git remote add" command is not a path, but a name for the new remote, a name like could be Lorenzo or Nico, but for practical purposes, you may prefer to assign a meaningful, explanatory name; in this case of the video, it was "our_clone" I guess. So, again that's just the name, not a path. (That's the reason it's telling you, 'hey, wait that weird thing starting with C: etc. is not a valid remote name').
Then, the following arg is, indeed, like you perfectly did, the path of the branch we want to remote (I don't know if that's the perfect wording, but you get the idea).
Here that is explained in further detail. Indeed, that is a perfect place for solving doubts about this complex stuff, if you just remove the "Git-Branching-Remote-Branches" from that URL and refresh, you'll get the table of contents, talkign about everything you can imagine in Git. :)
I've used this book a lot for the "Extra Credit" bonus lessons. And I recommend you also should, it makes you feel so much more comfortable with it.
NOTE: Notice that if you type any command and then --help it will open some help in the console, and sometimes even a page similar to the book. Just to try this briefly, do this (will take you only a minute): First try:
git remote add --help
Check the output carefully. Make notes if you need to or want to.
Now check this:
git remote --help
That helps a lot when we are stuck. I've been there too, like about everyday I am, ha ha...