Giter VIP home page Giter VIP logo

Comments (4)

jferris avatar jferris commented on August 24, 2024 1

The references to public repositories are hard to find and can't necessarily be updated: they're public, and anybody can link to them, so all the various blogs, Tweets, and GitHub comments out there will have the old URL, which includes "master."

However, GitHub will now redirect URLs referencing a deleted master branch, so changing the default branch here will mean those URLs continue to work. Since the guides are primarily a source of documentation (URLs) and not automation, I think it would be both safe and meaningful to proactively rename the default branch for this repository now rather than waiting for GitHub.

I'm going to update the default branch for this repository.

from guides.

jferris avatar jferris commented on August 24, 2024 1

I have:

  • Changed the default branch to main
  • Updated open pull requests to reference main instead of master
  • Deleted the master branch
  • Verified some URLs to see that master was redirected to main

from guides.

mike-burns avatar mike-burns commented on August 24, 2024

This is what I know about renaming the default branch on existing projects: https://github.com/github/renaming#later-this-year-seamless-move-for-existing-repositories-

And here's the Trello card for tracking things: https://trello.com/c/1cxPEAlZ/752-use-main-as-the-default-git-branch

from guides.

KurodaSteph avatar KurodaSteph commented on August 24, 2024

@louis-antonopoulos If I'm reading this correctly, Github is asking people to wait until the EOY, then we could change thoughtbot/guides root to main and anything connected to that will automatically change - is that how that works?

If so, I suppose we could wait. If not, I'd like to help the company fully switch to main. As a person who doesn't typically deep-dive into Github, I'd offer to pair with someone before EOY and manually make changes if it's under, say, 100 references (I suspect I might be underestimating the number of manual changes needed), and simple enough (although tedious). Would that help?

By the end of the year, we'll make it seamless for existing repositories to rename their default branch. When you rename the branch, we’ll retarget your open PRs and draft releases, move your branch protection policies, and more - all automatically. And, we’re also looking into redirecting users who git fetch or git clone the old branch name to the new branch name (with a warning and instructions to update their local clone), so it’s easy for your contributors to move.

cc @samkap re: https://github.com/thoughtbot/handbook/issues/1771

from guides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.