Using git-svn to ignore file only in svn repository?

I am new to git-svn and I am trying to mirror the SVN repo in git. However, I would like to add the readme.txt file for the git repository (show it in places like github), but ignore this file in the SVN repository. Is this possible without creating a mirror process (which is currently just a bash script doing git-svn rebase and git push) really messy?

+4
source share
2 answers

Just add the svn: ignore property to the parent directory containing the template that will correspond to the readme.txt file - you need to do this inside svn.

+1
source

If you have access to the SVN repostory server, you can simply install SubGit in your SVN repository. This is a real professional mirror of Git-SVN, each click on Git is translated into the SVN version and vice versa. The translation is parallel, bidirectional and transparent: svn: ignores translate to .gitignore, svn: eol-style to .gitattributes "eol" and "text" attributes, SVN tags to Git tags, branches to branches, merges into merges, etc. .

If you do not have access, you can use SmartGit to work with the SVN repository. It supports ignore, EOL, tags and merge translations. But this is a personal SVN client, not a bridge.

+2
source

Source: https://habr.com/ru/post/1339626/


All Articles