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

Re: RES: Can git change?

From
DGDaniel Gruesso <daniel.gruesso@gmail.com>
Date
Mar 9, 2021, 14:54 UTC
Message-ID
<CAFdpPnBUuN0VJ7YBbpb04e-SCK4DXCJ_-CRxMOB=E8fKZZCmhw@mail.gmail.com>
In-Reply-To
<xmqqft2owjb9.fsf@gitster.c.googlers.com>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Any repository created on GitHub will have that branch name by default.
> Likewise on Azure DevOps. I fully expect the other hosters to follow at
> some stage, and also for `git init` to change the default in a future
> version (I am working toward that goal).

GitLab product person here, we are indeed planning to change this in our next major release 14.0, shipping on 2021-05-22.

What is the tentative timeline for `git init` to change in default to `main` in the Git project? It would go a long way for the git community.

Thanks,

Daniel Gruesso On Tue, Jan 26, 2021 at 5:38 PM Junio C Hamano <gitster@pobox.com> wrote:

Show 44 quoted lines
>
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > And I have to admit that I am somewhat concerned about your students if
> > one of their instructors thinks that their education shouldn't prepare
> > them for more than working locally on their computers. Aren't they at all
> > interested in preparing the students for life after university? If so,
> > they will most certainly be affected by GitHub's decision.
>
> GitHub's decision will most affect projects that haven't started
> yet, simply because they won't have to incur any "transition" cost
> the existing projects may have to consider.  And given enough time,
> old projects die out and there will be more new projects than the
> projects we currently have, hopefully.
>
> Until that happens, they would be affected more by decision by the
> projects they interact with, as it is most convenient if your local
> name matches the name the upstream uses.  And the versions of Git
> way before people started talking about 'master' and 'main' have
> long been prepared for that, and we've been closing possible gaps in
> the recent versions.  "git clone" would notice what name the upstream
> uses and uses the same name locally.
>
> Even when they work locally, they'll start getting 'main' from their
> Git soon, and that would become consistent with the name that their
> "upstream" projects are likely to choose due to this "industry wide"
> push.
>
>
> > Any repository created on GitHub will have that branch name by default.
> > Likewise on Azure DevOps. I fully expect the other hosters to follow at
> > some stage, and also for `git init` to change the default in a future
> > version (I am working toward that goal).
> > ...
> > Maybe Git itself is not a good example for that. Bigger projects face
> > dramatically bigger challenges replacing the default branch name because
> > of the short term disruption caused by it. Nevertheless, a growing number
> > of projects have already renamed their default branch, such as Snowpack
> > (https://github.com/snowpackjs/snowpack) and the react-refresh webpack
> > plugin (https://github.com/pmmmwh/react-refresh-webpack-plugin) but also
> > bigger ones such as LLVM (https://github.com/llvm/llvm-project).
>
> Yes, thanks for giving Patricia and likeminded souls more usable
> ammunition than just us ;-)
Previous: Patricia B. C.Next: Johannes Schindelin
Message 10 of 12 in “Can git change?”
  1. Patricia B. C.Jan 22, 2021
  2. Christian CouderJan 22, 2021
  3. Junio C HamanoJan 22, 2021
  4. Martin von ZweigbergkJan 22, 2021
  5. Junio C HamanoJan 23, 2021
  6. RES: Can git change?Patricia B. C., Jan 23, 2021
  7. Johannes SchindelinJan 25, 2021
  8. Junio C HamanoJan 26, 2021
  9. Patricia B. C.Jan 26, 2021
  10. Daniel GruessoMar 9, 2021
  11. Johannes SchindelinMar 10, 2021
  12. Junio C HamanoMar 10, 2021

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.