fix(docs-guides): change 'master' to 'main' (#5346)
This commit is contained in:
parent
6c745822ab
commit
bb6587d184
@ -61,7 +61,7 @@ In your `config.yml` file paste the following configuration:
|
||||
```yml
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: master
|
||||
branch: main # Branch to update (optional; defaults to master)
|
||||
|
||||
media_folder: static/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 commit -m "Initial Commit"
|
||||
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
|
||||
|
@ -106,7 +106,7 @@ Your `config.yml` for GitHub should look like this:
|
||||
```yml
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: master
|
||||
branch: main # Branch to update (optional; defaults to master)
|
||||
|
||||
media_folder: "static/uploads"
|
||||
public_folder: "/uploads"
|
||||
@ -133,7 +133,7 @@ git init
|
||||
git add .
|
||||
git commit -m "Initial Commit"
|
||||
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
|
||||
|
@ -86,7 +86,7 @@ In the `config.yml` file, you can add this basic configuration — you can custo
|
||||
```yaml
|
||||
backend:
|
||||
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
|
||||
public_folder: /img
|
||||
collections:
|
||||
@ -115,7 +115,7 @@ git init # Initialize a git repository
|
||||
git add . # Add every file
|
||||
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 push -u origin master # Push your changes
|
||||
git push -u origin main # Push your changes
|
||||
```
|
||||
|
||||
### Deploying With Netlify
|
||||
|
@ -49,7 +49,7 @@ Create a file `admin/config.yml` in the root of your repo - it should look like
|
||||
|
||||
backend:
|
||||
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'
|
||||
collections:
|
||||
- name: 'blog'
|
||||
|
@ -128,6 +128,7 @@ For the purpose of this guide we will deploy to Netlify from a GitHub repository
|
||||
```yml
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: main # Branch to update (optional; defaults to master)
|
||||
|
||||
media_folder: source/images/uploads
|
||||
public_folder: /images/uploads
|
||||
@ -154,7 +155,7 @@ git init
|
||||
git add .
|
||||
git commit -m "Initial Commit"
|
||||
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
|
||||
|
@ -164,7 +164,7 @@ Paste the following configuration into your `public/admin/config.yml` file:
|
||||
```yaml
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: master
|
||||
branch: main # Branch to update (optional; defaults to master)
|
||||
media_folder: public/img
|
||||
public_folder: img
|
||||
collections:
|
||||
|
@ -43,7 +43,7 @@ For your `static/admin/config.yml` file, you can put in a basic starter config:
|
||||
```yaml
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: master
|
||||
branch: main # Branch to update (optional; defaults to master)
|
||||
|
||||
media_folder: static/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 commit -m "Initial Commit"
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user