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?
505 Views Asked by Christopher At
2
There are 2 best solutions below
0
Dmitry Pavlenko
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.
Related Questions in SVN
- Cannot load modules/mod_dav_svn.so into server
- Created Jenkins pipeline and added the script in the Pipeline Description.To check out the Project from the svn repository.NotWorking. Any Suggestion
- How to host SVN server on Cloud
- In two subversion repositories (same machine), can I have different usernames with no password prompting?
- Unrelated git histories when moving code from SVN to Git
- Convert local SVN to GIT using Tortoise GIT fails with unable connect?
- Jenkins Pipeline Script Check-in SVN using NPM
- Making latest subversion exec point to my restored subversion data directory
- Can anyone help on this "svn merge" problem?
- clone repo from SVN to GIT: unable to connect to a repository
- Possible to recursively serve an existing SVN checkout folder to another computer?
- How to push certain branches into git repository?
- Subversion svn merge failure
- Jenkins: SVN Checkout missing commit message
- SVN same setup, same user, fine from one machine but from another DAV/PROPFIND error
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in GIT-SVN
- Convert local SVN to GIT using Tortoise GIT fails with unable connect?
- clone repo from SVN to GIT: unable to connect to a repository
- git svn clone does not grab a branch not in stdlayout
- I need to migrate specific tags from svn to git
- How to git-svn clone specific subdirectories without the extra commit logs of the parent directory?
- getConnectors in SVN Eclipse
- Why my repo is empty after migrating a svn repo to git?
- Solution for moving SVN from branch to trunk
- How to clone SVN tags to GIT using tag name
- SVN subversion.javahl.ClientException: General filesystem error
- Git svn fetch restarts from 0 at each branch point
- git-svn tells me file is out of date but rebase doesn't solve it
- SVN to git migration with git svn returns "update-ref -m r40894 refs/remotes/origin/trunk 22c8704953ab8e....: command returned error: 127
- pushing a large cloned repo to github is failing (8gb) - fatal the remote hung up unexpectedly
- Svn to Git migration - command returned error: 128
Related Questions in IGNORE
- istanbul ignore next not working for @ContentChildren(ElementRef, {descendants: true}) set inputs(inputs: QueryList<ElementRef>)
- Is there a Git equivalent to Plastic's hidden_changes.conf?
- chromiumembedded / java-cef How to ignore SSL certificate?
- How to git ignore everything apart from some select files and directories
- VSCode, how to exclude settings.json from editor.formatOnSave
- Ignore all annotations using terraform kubernetes provider
- JsonIgnore is being ignored
- Mapstruct ignore field, warning unmapped target properties
- R strsplit ignore some text
- How can I ignore certain expressions from being compared using Difflib library
- Ignore return variable from an API function in VBA
- Ignore mapping fields in Elasticsearch & Nest
- Git repo: ignore any sub-directories that have their own git repos
- transformIgnorePatterns not working correctly in jest config
- ASP.NET Core - How to ignore model bound property of complex type in Swagger UI
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.