Cannot execute Git exercise 5 step 5


#1

Now that changes made to scene-2.txt have been booted out of the staging area, you're ready to commit. From the terminal, make a commit to save the Larry/Laertes name swap in hamlet.

How to do this? thx


#2

Unable to figure this one out too. I tried $ git commit "name swap" but got the following message

"error: pathspec 'name swap' did not match any file(s) k
nown to git"


#3

I passed, try $ git commit -m "hamlet"


#4

Ah yep that did it. I thought -m was optional.


#5

nope, -m means msg, good luck


#6

wow had the same problem thx for the advice it worked i was stumped lolz :grin: :wink:


#7

Thanks :sweat_smile:


#8

A post was split to a new topic: Git commit -m "hamlet" not working for me


#9

The solution given didn't work for me.. suggest an alternative pls.