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

I've been pushing to one branch from both git-svn and git

From
RCRicky Clarkson <ricky.clarkson@gmail.com>
Date
May 4, 2010, 11:43 UTC
Message-ID
<z2h7eeb06461005040443ib2fb7405i39e7d5b4220bfb08@mail.gmail.com>
Hi,

I have a git repository we'll call the git svn repo, in which I only perform git svn fetch and git push bare.

bare is a bare git repository, which I push to from a local repository.  The mistake I've been making is to push to the branch 'trunk' in bare, from my local repository.  The reason this is a mistake is because git push bare from the git svn repo also pushes to there.

Today I've been forced to learn of my mistake, as I cannot push from the git svn repo without possibly losing commits.  It turns out (which is probably obvious to you all) that I should have been pushing to, say, bare's 'master' branch instead of its trunk one.

I don't intend to push back to svn from any of these repos, but I would like to be able to continue pulling changes from svn at least for the time being.  What should I do?

Thanks, Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clarkson@gmail.com
Google Wave: ricky.clarkson@googlewave.com
Next: Avery Pennarun
Message 1 of 3 in “I've been pushing to one branch from both git-svn and git”
  1. Ricky ClarksonMay 4, 2010
  2. Avery PennarunMay 4, 2010
  3. Ricky ClarksonMay 5, 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.