[Geany-devel] Q: how to switch to new Git repo?
Eugene Arshinov
earshinov at xxxxx
Fri Jan 6 15:52:10 UTC 2012
Hi Thomas,
Thanks for the reply. If I can't preserve merges anyway, I'm going to
transfer the sm branch right from my existing local Git repository.
That is,
1. I will fork the main repository and clone it
2. add existing local repository as a remote
3. rebase the sm branch from the remote onto the corresponding commit
cloned from the fork.
I guess, this should work.
--
Best regards,
Eugene.
On Fri, 06 Jan 2012 16:37:05 +0100
Thomas Martitz <thomas.martitz at student.htw-berlin.de> wrote:
> Am 06.01.2012 16:32, schrieb Eugene Arshinov:
> > Hi guys!
> >
> > It's me again, after a long time. Please help me organize my Geany
> > repository. The last time I worked on Geany it was in SVN
> > repository, and I was using it through git-svn. Now there are two
> > Git repositories: the main one [1] and the one containing my
> > sm-branch [2]. I assume I should make the fork of the former and
> > put my sm branch there, but how do I transfer my sm branch,
> > preserving merge commits (master -> sm)?
> >
> > [1]: https://github.com/geany/geany
> > [2]: https://github.com/techee/sm-branch/
> >
> >
>
>
> I don't think you can preserve merge commits. The history of the new
> git and the old git-svn repos are incomatible (e.g. the new history
> has proper author information) so they're meaningless anyway.
>
> I suggest you rebase in the old repo and use patches to apply the
> changes to the new repo on the same revision/commit. Using 'git
> format-patch' and 'git am' you can preserve your non-merge commit
> history. Or just do 'git diff' for a single big patch,
>
> Best regards.
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
More information about the Devel
mailing list