Page 1 of 1

Importing old SVN project with git.

Posted: Sun Dec 07, 2014 10:43 am
by JMD
So i have a backed up version of my old project wich is a few revs ahead the last stable sync. Is there a way to make it possible to update via git?

Re: Importing old SVN project with git.

Posted: Sun Dec 07, 2014 6:28 pm
by Zoey76
By back up you mean, local checkout or you the SVN itself?

If it's local, Team - Disconnect - Delete SVN data, then Team - Share - Git, then configure upstream to be L2J, finally make a rebase, you may want to google about it.

Re: Importing old SVN project with git.

Posted: Tue Dec 09, 2014 8:10 am
by JMD
I had it saved as a zip file. So i had to import it into the eclipse and i dont get these options on the team section.

Re: Importing old SVN project with git.

Posted: Tue Dec 09, 2014 9:53 pm
by Zoey76
Make sure you have the proper Eclipse version, 4.4.1+

Re: Importing old SVN project with git.

Posted: Tue Dec 09, 2014 10:02 pm
by Battlecruiser
checkout latest version in SVN from git, unpack your state, commit, then pull

Re: Importing old SVN project with git.

Posted: Fri Jun 19, 2015 3:25 pm
by JMD
Got some questions (i know its necroposting).

So lets say i clone the master from git, i apply my changes and then i press commit. Do the changes i made get commited in my local repository?

Re: Importing old SVN project with git.

Posted: Fri Jun 19, 2015 7:43 pm
by Zoey76
JMD wrote:Got some questions (i know its necroposting).

So lets say i clone the master from git, i apply my changes and then i press commit. Do the changes i made get commited in my local repository?
If you do commit yes it's local repository, if you do commit and push it will try to commit to origin as well. :+1:

Re: Importing old SVN project with git.

Posted: Fri Jun 19, 2015 8:05 pm
by JMD
so in svn terms

push=commit to original repo or your own fork (if you use a fork you made of the original pack)
pull= update (to head? or it will trigger the sync view in case of conflict?)

Re: Importing old SVN project with git.

Posted: Fri Jun 19, 2015 8:25 pm
by Zoey76
JMD wrote:so in svn terms

push=commit to original repo or your own fork (if you use a fork you made of the original pack)
pull= update (to head? or it will trigger the sync view in case of conflict?)
This are different things and you shouldn't see them as SVN, but just to follow your POV, push = commit and pull is update to head with conflicts.

Re: Importing old SVN project with git.

Posted: Fri Jun 19, 2015 9:30 pm
by JMD
I see. thanks.