-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docs): Update deploying-to-netlify #25620
Conversation
move "Continuous deployment" under "Git repository setup" because continuous deployment is only possible with a Git repository add secondary default branch for deployment as `main`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but I'm curious where you got the part about "secondary default is main
". I know there's been a movement toward renaming the master branch in Git, is that reflected in Netlify's docs somewhere?
Hi! I couldn't find an article specifically referencing that the "secondary default is Once I deleted the This made me assume that the "secondary default is main". The closest thing I could find was here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd revert the change to the branch and then we can merge :)
docs/docs/deploying-to-netlify.md
Outdated
@@ -27,13 +27,17 @@ Netlify currently has built in support for [GitHub](https://github.com/), [GitLa | |||
|
|||
Now, login to Netlify and you will see a `New site from git` button at the top right corner of the screen. Click on it and connect with the same git provider that you used to host your website and authorize Netlify to use your account. Choose your website repository and it will take you to deploy settings with the below options. | |||
|
|||
- Branch to deploy: You can specify a branch to monitor. When you push to that particular branch, only then will Netlify build and deploy the site. The default is `master`. | |||
- Branch to deploy: You can specify a branch to monitor. When you push to that particular branch, only then will Netlify build and deploy the site. The default is `master`. The secondary default is `main`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert that change as this isn't documented by Netlify and I assume this just happened to you because the main
branch became the default
branch by deleting master
and thus Netlify takes the default one.
Description
main