开发者

Use git-svn to also control directory versioning

I want to use git-svn to sync my local computer with my compan开发者_JAVA百科y's remote svn repository. I used to do that, but had to stop because git did not put directories under revision control.

The problem is that when I added a new directory git worked just fine, but when I removed a dir the directory would still exist in the svn repository, causing problems to other developers that used svn natively.

Is there a way to solve this? I'm having problems to find solutions in git documentation..


Found it and it works. Found the solution in: http://kerneltrap.org/mailarchive/git/2008/2/23/962754

Basically, you set a variable called svn.rmdir in git configuration. This will make git-svn erase directories on svn server when they become empty.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜