开发者

"hg commit -m 'My changes' " error

I follow this article to create a repository using M开发者_如何学Goercurial:

$ hg clone http://selenic.com/repo/hello
$ cd hello
$ hg add a.txt
$ hg commit -m 'My changes'

but when i use hg commit -m 'My changes', it shows error :

abort: changes':

What can I do about it?


Seems like your single quotes aren't behaving as such, which would hint that you're using a different character. Are you using the standard straight single quote?


Single-quoted strings need to be supported by your shell. Double quotes should work. For example, the Windows shell only supports double quotes.


If you simply do

hg commit

it will show you the editor, where you can type in your commit message.

As others have pointed out, though, double quotes should do the trick too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜