Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"hg commit" - nothing happens!

Tags:

mercurial

I just started my first Mercurial project.

I did a 'cd' into my source directory.

Then I did this:

hg init myproject

But next I did

hg commit -m "first commit"

And all it reports is:

nothing changed

But when I do

hg status

It lists all of the source code in my project.

What am I doing wrong here?

like image 630
tent Avatar asked Sep 09 '09 03:09

tent


1 Answers

I think the output of the hg status command is probably telling you that you have a lot of files in your working directory that are not being tracked by Mercurial. You should be able to fix this by running the command

hg addremove

Then you can make your first commit:

hg commit -m "first commit"

Alternatively, you can do this all in one command with

hg commit -A -m "first commit"
like image 63
las3rjock Avatar answered Oct 21 '22 15:10

las3rjock