开发者

Interconversion of gitignore and hgignore?

开发者 https://www.devze.com 2023-01-28 01:33 出处:网络
I\'m just starting to use hg-git to push some mercurial repositories to github, and I\'m realizing that if people check them out using git,开发者_如何学编程 they\'ll need a .gitignore file in the repo

I'm just starting to use hg-git to push some mercurial repositories to github, and I'm realizing that if people check them out using git,开发者_如何学编程 they'll need a .gitignore file in the repository. Is there any automated way to convert hgignore to gitignore or vice versa?


If you're just using glob syntax in your hgignore, then all you'd need to do is rename it, and it should just work. If you're using regex syntax then it's going to be a different story...

0

精彩评论

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

关注公众号