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 Git Basics Getting Started With Git Working With Git Repositories

lets create a new git repository inside of a new folder. Call if whatever you'd like DOES NOT TAKE CORRECT INPUT

very important, and VERY ANNOYING BUG HERE. If you type in "git init new_project/" like you can in Linux, it will NOT accept it with the slash on the end. this should be corrected!!!!!!!

Are you using Windows or Mac? Certainly works on my Linux partition. I could try on Windows. Perhaps running an update will fix it. Is this problem that important though?

3 Answers

Mahmoud Dafer
Mahmoud Dafer
9,793 Points

well, I think it should not contain the "/" at the end.. i tried what u wrote but it says that it's wrong. Eventually, removing the "/" worked :)

the answer is: git init project_something

Joshua Edwards
Joshua Edwards
52,175 Points

The only way I can think of the above command not working is if git was installed on windows in a way that you didn't have git commands available to the windows command line. If that is the case, then using the git bash program which you can find inside of the git folder, should be used in place of the windows command line.

If using a Mac or Linux the command should work, at least with my testing of it.