question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change default branch to main

See original GitHub issue

I’d like to propose we create a main branch and make that the default branch in this repository.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kaicataldocommented, Feb 1, 2021

Yup, that’s what I used!

0reactions
nickmccurdycommented, Feb 1, 2021

For future reference, GitHub now supports branch renaming, so now you can easily rename master to main without worrying about breaking PRs (they will re-track the new main branch automatically).

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 steps to change GitHub default branch from master to main
Step 1 - Move the master branch to 'main' · Step 2 - Push 'main' to remote repo · Step 3 - Point...
Read more >
git how to change default branch for everything I do?
2 Answers 2 · rename your local branch from master to main: git branch -m master main · push to main: git push...
Read more >
Configure git to use 'main' as the primary branch
Changing the primary branch to use 'main' · Check the name of your branch by running the following command on your home computer...
Read more >
How to rename the "master" branch to "main" in Git
have to change the "default" branch or remove any "protected" status for "master". You will then be able to delete the old "master"...
Read more >
Change git init default branch name - Super User
Now when you run git init , main will be your default branch. This is similar to running git config --global init.defaultBranch main...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found