在使用git和git-svn桥时,如何指示要在svn中忽略的文件? [英] How can you indicate files to ignore in svn when using git and the git-svn bridge?

查看:114
本文介绍了在使用git和git-svn桥时,如何指示要在svn中忽略的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个主Subversion版本库,我克隆了一个git仓库。我在.gitignore中有很多被忽略的文件,我希望svn知道。



我知道我可以使用 git svn show-ignore 从subversion中取消被忽略的列表,但我怎么能做到相反?发送一个被忽略的文件列表回到svn repo?



Git版本(和git-svn版本相同):

  git --version 
git版本1.7.0.5


解决方案

好的,我找到的一个(令人讨厌的)方法是:

(便利步骤)将gitignore文件添加到存储库,以便跟踪它。



执行 svn checkout



svn propedit svn:忽略./



添加所有跟踪的gitignore文件中的内容。



然而,这非常丑陋,而且谁喜欢真正触及&当你使用git时,签出svn?任何人都有更好的选择?


There is a master subversion repository that I've cloned a git repo from. I've got a lot of ignored files in my .gitignore that I'd like the svn repository to know about.

I know that I can use git svn show-ignore to pull the ignored list from subversion, but how can I do the reverse? Send a list of files to be ignored back to the svn repo?

Git version (and git-svn is at the same version):

git --version 
git version 1.7.0.5

解决方案

Ok, so one (annoying) method that I've found is to:

(convenience step) add the gitignore file to the repository so that it is tracked.

Do an svn checkout.

svn propedit svn:ignore ./

Add in all the stuff that's in the tracked gitignore file.

This is pretty ugly, though, and who likes to actually touch & checkout svn when you're working with git? Anyone have a better alternative?

这篇关于在使用git和git-svn桥时,如何指示要在svn中忽略的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆