简体   繁体   中英

Using git-svn to ignore a file just in the svn repo?

I'm new to git-svn and I'm trying to mirror an SVN repo in git. However, I'd like to add a readme.txt file for the git repo (show it shows up in places like github) but ignore that file in the SVN repo. Is that possible without making the mirror process (which is currently a simply bash script doing git-svn rebase and git push) really messy?

If you have an access to SVN repostiory server, you may just install SubGit into your SVN repository. It is a real professsional Git-SVN mirror, every push to Git is translated to SVN revision, and vice versa. The translation is concurrent-safe, bidirectional and transparent: svn:ignores are translated to .gitignore, svn:eol-style to .gitattributes "eol" and "text" attributes, SVN tags to Git tags, branches to branches, merges to merges and so on.

If you don't have the access, you may use SmartGit for working with the SVN repository. It supports ignores, EOLs, tags and merges translation too. But it is a personal SVN client, not a bridge.

只需将svn:ignore属性添加到包含与readme.txt文件匹配的模式的父目录中 - 您需要在svn中执行此操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM