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

Re: git-svn stubbornly re-creating branch "master"

From
EWEric Wong <normalperson@yhbt.net>
Date
Mar 29, 2009, 22:28 UTC
Message-ID
<20090329222827.GA32199@dcvr.yhbt.net>
In-Reply-To
<20090329171347.GA26866@beczulka>
Marcin Owsiany <porridge@debian.org> wrote:
Show 12 quoted lines
> Hello,
> 
> I created my git repository by cloning it with git-svn from an upstream SVN
> repository. When I did that, a branch "master" was created. Afterwards I
> renamed that branch to "upstream". However every time I "git-svn fetch", it
> recreates the "master" branch, pointing it at the newest upstream commit.
> 
> Ideally, I'd like it to just forget about "master" and do the same to my
> "upstream" branch. Is it possible?
> 
> If not, then is it at least possible to have it not recreate the "master"
> branch? It clutters my view.

"master" has been a git convention since the earliest days of git and it's less confusing to new users following documentation if it always exists (and a lot of users' first git experience is with git svn).

Why not just use "master" as one of your branches? It won't bite you. "git svn fetch" will never clobber your "master" if it already exists.

-- 
Eric Wong
Previous: Marcin OwsianyNext: David Kågedal
Message 8 of 10 in “git-svn stubbornly re-creating branch "master"”
  1. Marcin OwsianyMar 29, 2009
  2. Dmitry PotapovMar 29, 2009
  3. Mikael MagnussonApr 3, 2009
  4. Marcin OwsianyJun 6, 2009
  5. Marcin OwsianyJun 14, 2009
  6. Andreas EricssonJun 14, 2009
  7. Marcin OwsianyJun 14, 2009
  8. Eric WongMar 29, 2009
  9. David KågedalApr 3, 2009
  10. Marcin OwsianyApr 3, 2009

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.