Reputation: 1079
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
Reputation: 51
Try hg push
then refresh the repository some times It changes inspite of saying nothing changed
Upvotes: -2
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