Kzq*_*qai 10 svn git git-svn svnignore gitignore
有一个主subversion存储库,我克隆了一个git repo.我的.gitignore中有很多被忽略的文件,我希望svn知识库能够知道.
我知道我可以用来git svn show-ignore
从subversion中提取被忽略的列表,但是如何反过来?将要忽略的文件列表发送回svn repo?
Git版本(和git-svn版本相同):
git --version
git version 1.7.0.5
Run Code Online (Sandbox Code Playgroud)
好吧,我发现一个(烦人的)方法是:
(方便步骤)将gitignore文件添加到存储库以便跟踪它.
做一个svn checkout
.
svn propedit svn:ignore ./
添加跟踪的gitignore文件中的所有内容.
但是,这非常难看,当你使用git时,谁喜欢真正触摸和结账svn?谁有更好的选择?