tent
tent

Reputation: 1079

"hg commit" - nothing happens!

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?

Upvotes: 13

Views: 11548

Answers (2)

Nimrod Mpandari
Nimrod Mpandari

Reputation: 51

Try hg push then refresh the repository some times It changes inspite of saying nothing changed

Upvotes: -2

las3rjock
las3rjock

Reputation: 8724

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"

Upvotes: 24

Related Questions