You are not logged in.
Hi
I'm modifying some open source software which i checked out from SVN. Lets call the project "original". I cannot modify the SVN repo, only update from it.
In order to keep changes to the original project i've wrapped around a Git repository in which i only add files modified from the original repo.
git-repo/original
Now i have the following problem:
1. i update the original source by svn update && svn reverting
2. i want to apply the changes from git and i need it to apply them in favor to the git repository so my changes wont get lost.
I tried around with updating, stashing and stuff but i couldn't find a simple solution to my problem.
So maybe you have some experiance with this kind of setup and you can point me to the right direction.
Regards,
Archdove
Offline
http://git-scm.com/book/en/Git-and-Othe … Subversion
Could this be what you are looking for? It should be built into git. Man Page
Offline
Perhaps you could create a patch using git diff and apply it onto your svn repo. A more long-term solution might be git-svn (I see chipper has already linked you to it).
div curl F = 0
Offline
Why not just keep your revisions under svn? That would be far simpler.
Otherwise, if you must use git for your version, you can treat the changes to the svn original/upstream simply as another contributor and - as needed - merge their changes with yours. Git will do this 'automagically' where possible - and where not it is likely that there would be no way around manual intervention.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What you want is already built into git natively as git svn. It does exactly what you are asking for, works well, and is simple to use. Any time I encounter a legacy svn repo I use git svn to check it out, manage, and submit my changes back to the repo.
Offline
Noting @Bulletmark's advice you will probably find this useful:
https://blogs.atlassian.com/2013/12/git … nd-tricks/
Offline
This is the repository that i want to check out. but git can't do it. It scans for revision forever.
git svn clone http://svn.apache.org/repos/asf/ofbiz/b … lease13.07 ofbiz.13.07
Could someone who has done this before check if i am the problem or if the repo is strangely configured?
Offline
$ git svn clone -r HEAD http://svn.apache.org/repos/asf/ofbiz/branches/release13.07
Offline