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

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

From
David Kågedal <davidk@lysator.liu.se>
Date
Apr 3, 2009, 10:42 UTC
Message-ID
<87eiwakohw.fsf@krank.kagedal.org>
In-Reply-To
<20090329222827.GA32199@dcvr.yhbt.net>
Eric Wong <normalperson@yhbt.net> writes:
Show 20 quoted lines
> Marcin Owsiany <porridge@debian.org> wrote:
>> 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.

I also find this highly annoying. I use branch names that matches the branches we use in svn. So when working on changes for the svn "foo" branch, I have a git branch "foo" that is based on "svn/foo". And when working on "bar" I use a "bar" branch and so on. A "master" branch has no place in my workflow, and I keep deleteing it over and over again.

But mostly I just ignore it.
-- 
David Kågedal
Previous: Eric WongNext: Marcin Owsiany
Message 9 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.