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?
Using git-svn to ignore a file just in the svn repo?
443 views Asked by Christopher At
2
There are 2 answers
0
On
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.
Just add an svn:ignore property to the parent directory that contains a pattern that would match the readme.txt file - you'll need to do this inside svn.