开发者

How to commit empty folders to a Mercurial repository?

开发者 https://www.devze.com 2023-02-06 16:23 出处:网络
I noticed that TortoiseHg does开发者_开发问答n\'t commit empty folders. How to fix that?Mercurial doesn\'t track empty folders.

I noticed that TortoiseHg does开发者_开发问答n't commit empty folders. How to fix that?


Mercurial doesn't track empty folders.

If you really want an 'empty' folder in the repo, I'd suggest checking in a readme file in that folder explaining why it's empty/necessary to be in the repo, that way you can have a psuedo empty folder and have documentation for why at the same time.

Alternatively look at why you need this folder. Is it for you build process? Then maybe creating it should be part of the build process not version control.


This is usually done by adding a hidden file in the folder (starting with a dot, like .hidden).


If you have a project with a build process it should create needed folders automatically when needed.

0

精彩评论

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