How to diff between a git and svn repos

社会主义新天地 提交于 2021-01-29 12:14:46

问题


I recently forked a project in github and made a clone on my disk. I was working on this same project which I had on SVN before I find that someone else also worked on it. I don't have write access on SVN repo. I only have a changed copy on my disk. Now I have a clone of my own git and a SVN clone.

I want to apply my changes in SVN copy to my git clone. Do you know any tool for Windows which can help? I know git-svn does something similar but I am not sure if it would work with a local copy of SVN.

Edit: Actually I want to merge two repos. Edit 2: A very important ability which I am looking for is to set a done flag for each file I am finished merging.


回答1:


I don't know if it is the best way or not but it is a feasible solution. What I did was to first create a SVN repo from my working copy, then converted it to a git repo. Then I fetched it from the original git repo and merged. This way we can easily see the conflicting files and resolve them.



来源:https://stackoverflow.com/questions/61124160/how-to-diff-between-a-git-and-svn-repos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!