git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* use case, advices (SVN/GIT)
@ 2010-04-22 12:14 Mihamina Rakotomandimby
  2010-04-23 15:25 ` Ulrich Spörlein
  0 siblings, 1 reply; 2+ messages in thread
From: Mihamina Rakotomandimby @ 2010-04-22 12:14 UTC (permalink / raw)
  To: git list

Manao ahoana, Hello, Bonjour,

We'd rather use GIT.
But there is a project, that we regularily pull (Coova:
http://coova.org/CoovaChilli/Developers) which is under SVN.

I first "svn export" this project.
I initiate a new GIT repository based on what I "exported".
I make my changes, and commit them.

I month (and several commits) later, I would like to sync with Coova
SVN.

It's a one way "pull": I wont push my changes to their repository.

What's your recommended way to handle this?

Misaotra, Thanks, Merci.

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                +261 34 29 155 34 / +261 33 11 207 36

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: use case, advices (SVN/GIT)
  2010-04-22 12:14 use case, advices (SVN/GIT) Mihamina Rakotomandimby
@ 2010-04-23 15:25 ` Ulrich Spörlein
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Spörlein @ 2010-04-23 15:25 UTC (permalink / raw)
  To: Mihamina Rakotomandimby; +Cc: git list

On Thu, 22.04.2010 at 15:14:01 +0300, Mihamina Rakotomandimby wrote:
> Manao ahoana, Hello, Bonjour,
> 
> We'd rather use GIT.
> But there is a project, that we regularily pull (Coova:
> http://coova.org/CoovaChilli/Developers) which is under SVN.
> 
> I first "svn export" this project.
> I initiate a new GIT repository based on what I "exported".
> I make my changes, and commit them.

Use git-svn(1) to clone the branch you want to track

$ git svn init -Ttrunk URL

now you have a master branch that is set up to track the svn trunk. I'd
recommend to put your commits into a different branch though and keep
'master' clean.

> I month (and several commits) later, I would like to sync with Coova
> SVN.

$ git svn rebase
will fetch all new svn commits and put them in remotes/trunk, master is
then forwarded accordingly.

Rebase your work on top of master now
$ git rebase master mybranch

> It's a one way "pull": I wont push my changes to their repository.
> 
> What's your recommended way to handle this?

git-svn, see above.

Uli

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-23 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 12:14 use case, advices (SVN/GIT) Mihamina Rakotomandimby
2010-04-23 15:25 ` Ulrich Spörlein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).