frazman
frazman

Reputation: 33293

How do I add new folders to a Mercurial Repository?

So I have a mercurial repository set up and it would be great if someone can guide me out..

SO, I have a space on the server specific to the work I do. Let say that address of that path is:

https://foo.bar/space

In that I have a folder called

Project/Project_1

Now I am working on another project

Project_2

and I wrote few code.. now How do I create a folder

Project/Project_2 on the repo

and then push all the changes I want to make

I guess a very trivial question..

Upvotes: 1

Views: 16096

Answers (1)

Ry4an Brase
Ry4an Brase

Reputation: 78350

Mercurial doesn't track directories (aka folders) at all. It tracks files. Just hg add Project/Project2/yourfilename.ext and when you hg commit and hg push you'll see it on "the server". You can add a lot of files at once with hg addremove but you still need to commit and push them.

It sounds like you've got a very incomplete understanding of Mercurial and should track down a good introduction (or the free online book) before you take actions you'll regret.

Upvotes: 4

Related Questions