How can you indicate files to ignore in svn when using git and the git-svn bridge?

前提是你 提交于 2019-12-05 01:44:34

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 svn does not support this, so you'd have to do it yourself on a separate svn checkout. From the manual:

We ignore all SVN properties except svn:executable

It would be really nice though if this wasn't the answer...

Yes, it is possible. Just install SubGit into your SVN repository. It acts like a concurrent-safe bridge and performs bidirectional translation (triggered by hooks). It translates SVN tags to Git tags, branches to branches, svn:ignores to .gitignore, svn:eol-style to "eol" and "text" attribute of .gitattirbutes, fully merged SVN branches to Git merge-commits; and vice versa.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!