git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: use case, advices (SVN/GIT)

From
USUlrich Spörlein <uqs@spoerlein.net>
Date
Apr 23, 2010, 15:25 UTC
Message-ID
<20100423152517.GA92627@acme.spoerlein.net>
In-Reply-To
<20100422151401.2c47aa76@pbmiha.malagasy.com>
On Thu, 22.04.2010 at 15:14:01 +0300, Mihamina Rakotomandimby wrote:
Show 9 quoted lines
> 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
Previous: Mihamina Rakotomandimby
Message 2 of 2 in “use case, advices (SVN/GIT)”
  1. Mihamina RakotomandimbyApr 22, 2010
  2. Ulrich SpörleinApr 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.