Comments (4)
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.
I have:
- Changed the default branch to
main
- Updated open pull requests to reference
main
instead ofmaster
- Deleted the
master
branch - Verified some URLs to see that
master
was redirected to main
from guides.
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.
@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)
- Add accessibility resources to guides HOT 8
- YouTube Video Unavailable HOT 5
- Should we delete empty (seemingly duplicate) graphql guide? HOT 1
- Document SVG best practices HOT 5
- Update Backbone guide? HOT 2
- Update Ember guide? HOT 1
- Update how-to guide on feature-testing a Rails app’s Javascript? HOT 2
- Document Go Best Practices HOT 2
- Replace Ruby style guide with standard HOT 2
- Combine Best Practices and Style guides HOT 3
- Our testing guides are ruby/rails-centric HOT 2
- What layout should we suggest for test suite files in JavaScript / TypeScript projects?
- Audit guides for potential improvements
- Guides have inconsistent formatting
- Data guide should use description lists HOT 4
- Inquiring about JSONB column issues HOT 2
- rebase workflow link missing from Git guide HOT 1
- 404 link in relational-databases
- A11y template HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guides.