I did some research and came up with an opportunity that could do this: 2 git repositories pointing to the same directory. The GIT_DIR environment variable stores the name of the local repository directory. If unset, git defaults to -git, but it could be anything.
What I could do is have one repository in .git, which appears in my Subversion repository. This is a common case. Then I could have another repository in .localgit. Each repository must be configured to ignore files managed by another. It is easy with! to deny the drawings.
When I make changes to the local files that I want to check, I either change my GIT_DIR environment variable or use the command line argument - git -dir. If I have my exceptions / ignored properly configured, I donβt have to worry about collisions. Obviously, there is some overhead to keep this update, but I can write a shell script that adds the file to one repo exception when the file is added to another. In addition, this overhead occurs only once for each file, and not for each commit, as is the case with a multi-branch offer.
If I wanted to make it simpler, I could use a naming convention, but I can also do it in every single file, since the number of local files will almost certainly be in the form of single digits (otherwise I am something wrong) .
One of the sides that I see with this approach is that I would not be able to deploy and store the files and the reset files locally just like the files in the SVN repository. My change for them is likely to be asynchronous with respect to my main changes, so I don't think that would be a significant problem in practice. I could also write wrappers for those functions that were aware of several repositories. Also, I should be more explicit when managing local files, but pretty much any situation would have to deal with this if several repositories werenβt built into git.
normal
source share