fix(docs-guides): change 'master' to 'main' (#5346)

This commit is contained in:
Josh Cesana 2021-05-09 06:10:26 -05:00 committed by GitHub
parent 6c745822ab
commit bb6587d184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 11 deletions

View File

@ -61,7 +61,7 @@ In your `config.yml` file paste the following configuration:
```yml ```yml
backend: backend:
name: git-gateway name: git-gateway
branch: master branch: main # Branch to update (optional; defaults to master)
media_folder: static/img media_folder: static/img
public_folder: /img public_folder: /img
@ -111,7 +111,7 @@ It's now time to commit your changes and push to GitHub. The Gatsby starter init
git add . git add .
git commit -m "Initial Commit" git commit -m "Initial Commit"
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git
git push -u origin master git push -u origin main
``` ```
### Add your repo to Netlify ### Add your repo to Netlify

View File

@ -106,7 +106,7 @@ Your `config.yml` for GitHub should look like this:
```yml ```yml
backend: backend:
name: git-gateway name: git-gateway
branch: master branch: main # Branch to update (optional; defaults to master)
media_folder: "static/uploads" media_folder: "static/uploads"
public_folder: "/uploads" public_folder: "/uploads"
@ -133,7 +133,7 @@ git init
git add . git add .
git commit -m "Initial Commit" git commit -m "Initial Commit"
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git
git push -u origin master git push -u origin main
``` ```
### Add your repo to Netlify ### Add your repo to Netlify

View File

@ -86,7 +86,7 @@ In the `config.yml` file, you can add this basic configuration — you can custo
```yaml ```yaml
backend: backend:
name: git-gateway name: git-gateway
branch: master # Branch to update (optional; defaults to master) branch: main # Branch to update (optional; defaults to master)
media_folder: static/img media_folder: static/img
public_folder: /img public_folder: /img
collections: collections:
@ -115,7 +115,7 @@ git init # Initialize a git repository
git add . # Add every file git add . # Add every file
git commit -m "Initial Commit" # Commit every file with the message 'Initial Commit' git commit -m "Initial Commit" # Commit every file with the message 'Initial Commit'
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git # Create a new repo on GitHub and add it to this project as a remote repository. git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git # Create a new repo on GitHub and add it to this project as a remote repository.
git push -u origin master # Push your changes git push -u origin main # Push your changes
``` ```
### Deploying With Netlify ### Deploying With Netlify

View File

@ -49,7 +49,7 @@ Create a file `admin/config.yml` in the root of your repo - it should look like
backend: backend:
name: git-gateway name: git-gateway
branch: master # Branch to update (optional; defaults to master) branch: main # Branch to update (optional; defaults to master)
media_folder: 'assets/uploads' media_folder: 'assets/uploads'
collections: collections:
- name: 'blog' - name: 'blog'

View File

@ -128,6 +128,7 @@ For the purpose of this guide we will deploy to Netlify from a GitHub repository
```yml ```yml
backend: backend:
name: git-gateway name: git-gateway
branch: main # Branch to update (optional; defaults to master)
media_folder: source/images/uploads media_folder: source/images/uploads
public_folder: /images/uploads public_folder: /images/uploads
@ -154,7 +155,7 @@ git init
git add . git add .
git commit -m "Initial Commit" git commit -m "Initial Commit"
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git
git push -u origin master git push -u origin main
``` ```
### Add your repo to Netlify ### Add your repo to Netlify

View File

@ -164,7 +164,7 @@ Paste the following configuration into your `public/admin/config.yml` file:
```yaml ```yaml
backend: backend:
name: git-gateway name: git-gateway
branch: master branch: main # Branch to update (optional; defaults to master)
media_folder: public/img media_folder: public/img
public_folder: img public_folder: img
collections: collections:

View File

@ -43,7 +43,7 @@ For your `static/admin/config.yml` file, you can put in a basic starter config:
```yaml ```yaml
backend: backend:
name: git-gateway name: git-gateway
branch: master branch: main # Branch to update (optional; defaults to master)
media_folder: static/img media_folder: static/img
public_folder: /img public_folder: /img
@ -94,7 +94,7 @@ It's now time to commit your changes and push to GitHub. `create-nuxt-app` initi
git add . git add .
git commit -m "Initial Commit" git commit -m "Initial Commit"
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git
git push -u origin master git push -u origin main
``` ```
### Deploying With Netlify ### Deploying With Netlify