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 trialJan Lundeen
5,886 Pointsgit mv command - challenge 1 of 3 - getting error - need to specify the file to move
Hi,
When I was working on challenge 1 of 3 for the git mv command, I got an error even though I did what the error message said I should do. Here's the question:
Challenge Task 1 of 3 We accidentally committed a file with the wrong file name extension. Run the git command to move the "chapter3.text" file to the name "chapter3.txt". Type in your command below, then press Enter.
Here's mu answer:
git mv "chapter3.text" "chapter3.txt"
Here's the error message I received:
Bummer: After the subcommand "mv", you need to specify the name of the file you want to move. In this case, that's the file name with the incorrect extension: "chapter3.text".
Since I listed the file I wanted to move followed by the file I want to move it to, I'm not sure why I'm getting an error. I double checked to make sure I didn't misspell either one of the files names. Both look correct to me. Can you help me figure out what I'm missing?
Thanks,
Jan
1 Answer
Mark Sebeck
Treehouse Moderator 37,905 PointsYou don't need the quotes on the file names.
Try:
git mv chapter3.text chapter3.txt
Jan Lundeen
5,886 PointsJan Lundeen
5,886 PointsThanks Mark! That worked.
Mark Sebeck
Treehouse Moderator 37,905 PointsMark Sebeck
Treehouse Moderator 37,905 PointsYouβre welcome Jan. Glad to help.