开发者

Use git-svn to also control directory versioning

开发者 https://www.devze.com 2023-01-12 06:20 出处:网络
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.

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

精彩评论

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