Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 73537fd

Browse files
authored
Merge pull request #56 from githubtraining/rename-branch
Rename master to main in all instructions and config
2 parents 386b694 + fe173a0 commit 73537fd

26 files changed

+60
-60
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ For more information on the goals of this course, check out the [`course-details
1414

1515
## Contribute
1616

17-
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/master/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
17+
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/main/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
1818

19-
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/master/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
19+
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/main/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
2020

2121
## License
2222

23-
All Learning Lab course repositories are licensed under [CC-BY-4.0](../master/LICENSE) (c) 2019 GitHub, Inc. The template repositories associated with each course may have different licenses.
23+
All Learning Lab course repositories are licensed under [CC-BY-4.0](../main/LICENSE) (c) 2019 GitHub, Inc. The template repositories associated with each course may have different licenses.
2424

2525
When using the GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos)

config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ steps:
207207
- type: gate
208208
left: '%payload.pull_request.base.ref%'
209209
operator: ===
210-
right: master
210+
right: main
211211
else:
212212
- type: createReview
213213
body: 06_fix-base.md

responses/01_turn-on-gh-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Now, on to business! GitHub Pages allow you to serve a static site from a reposi
1010

1111
1. Click on the [**Settings**]({{ repoUrl }}/settings) tab in this repository
1212
1. Scroll down to the "GitHub Pages" section
13-
1. From the "Source" drop down, select **master branch**
13+
1. From the "Source" drop down, select **main branch**
1414

1515
> Note: Even though you'll see an option to choose a theme, do not apply a theme at this point. We've protected the code so you can't make unintended changes. You'll have the opportunity to apply a theme when the course is completed.
1616

responses/03_create-a-branch.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Let’s complete the first step of the GitHub flow: creating a branch <sup>[:boo
1010

1111
You just learned how to create a branch—the first step in the GitHub flow.
1212

13-
Branches are an important part of the GitHub flow because they allow us to separate our work from the `master` branch. In other words, everyone's work is safe while you contribute.
13+
Branches are an important part of the GitHub flow because they allow us to separate our work from the `main` branch. In other words, everyone's work is safe while you contribute.
1414

1515
### Tips for using branches
1616

17-
A single project can have hundreds of branches, each suggesting a new change to the `master` branch.
17+
A single project can have hundreds of branches, each suggesting a new change to the `main` branch.
1818

19-
The best way to keep branches organized with a team is to keep them concise and short-lived. In other words, a single branch should represent a single new feature or bug fix. This reduces confusion among contributors when branches are only active for a few days before they’re merged <sup>[:book:](https://help.github.com/articles/github-glossary/#merge)</sup> into the `master` branch.
19+
The best way to keep branches organized with a team is to keep them concise and short-lived. In other words, a single branch should represent a single new feature or bug fix. This reduces confusion among contributors when branches are only active for a few days before they’re merged <sup>[:book:](https://help.github.com/articles/github-glossary/#merge)</sup> into the `main` branch.
2020

2121
<hr>
2222
</details>
@@ -52,17 +52,17 @@ The best way to keep branches organized with a team is to keep them concise and
5252
{{ thePayload.repository.clone_url }}
5353
```
5454
1. Select the location in which to save the repository and click **Choose folder**. Then, open the location you selected.
55-
1. The repository folder should now be open in your VS Code project. Click on `master` at the bottom left of the VS Code window. This will bring up the Command Palette with the commands related to Git branches.
55+
1. The repository folder should now be open in your VS Code project. Click on `main` at the bottom left of the VS Code window. This will bring up the Command Palette with the commands related to Git branches.
5656
![a screenshot of the Git branches in VS Code](https://user-images.githubusercontent.com/16547949/53639606-adc76e80-3bf7-11e9-98ac-bd41ae2b40db.png)
5757
1. Click **Create new branch** and enter any branch name you'd like, such as `my-slide`. Then press <kbd>Enter</kbd>.
58-
1. When asked to select the ref to create the branch from, select `master`.
58+
1. When asked to select the ref to create the branch from, select `main`.
5959
1. Go to the Source Control view, click on the ellipsis (...) and select **Push**. Confirm the dialog box asking you to publish the branch.
6060
![a screenshot of the source control view in VS Code](https://user-images.githubusercontent.com/16547949/53640015-ee73b780-3bf8-11e9-8c90-be9022b9555a.png)
6161
6262
{% else %}
6363
6464
1. Navigate to the [Code tab]({{ thePayload.repository.html_url }})
65-
2. Click **Branch: master** in the drop-down
65+
2. Click **Branch: main** in the drop-down
6666
3. In the field, enter a name for your branch, like `my-slide`
6767
4. Click **Create branch: <name>** or press the <kbd>Enter</kbd> key to create your branch
6868

responses/04_commit-something.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:tada: You created a branch!
44

5-
Creating a branch allows you to make modifications to your project without changing the deployed `master` branch. Now that you have a branch, it’s time to create a file and make your first commit!
5+
Creating a branch allows you to make modifications to your project without changing the deployed `main` branch. Now that you have a branch, it’s time to create a file and make your first commit!
66

77
<details><summary>Commits 101</summary>
88

responses/05_open-a-pr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Let’s think back to the GitHub flow again. You have created a branch, added a
1414
<hr>
1515
</details>
1616

17-
This pull request is going to keep the changes you just made on your branch and propose applying them to the `master` branch.
17+
This pull request is going to keep the changes you just made on your branch and propose applying them to the `main` branch.
1818

1919
### :keyboard: Activity: Create a pull request
2020

2121
1. Open a pull request using [this shortcut]({{ url }}) or manually as follows:
2222
- From the "Pull requests" tab, click **New pull request**
23-
- In the "base:" drop-down menu, make sure the "master" branch is selected
23+
- In the "base:" drop-down menu, make sure the "main" branch is selected
2424
- In the "compare:" drop-down menu, select "{{ branch | remove: 'refs/heads/' }}"
2525
1. When you’ve selected your branch, enter a title for your pull request. For example `Add {{ user.username }}'s file`
2626
1. The next field helps you provide a description of the changes you made. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit, and opened a pull request

responses/06_fix-base.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Your base branch should be named `master`. Let's open a new pull request to fix this.
1+
Your base branch should be named `main`. Let's open a new pull request to fix this.
22

33
### :keyboard: Activity: Adjust PR direction
44

55
1. Click on the **Edit** button located to the right of your pull request's title
6-
1. Below the title's comment box, in the "base:" drop-down menu, make sure the “master” branch is selected
6+
1. Below the title's comment box, in the "base:" drop-down menu, make sure the “main” branch is selected
77
1. A pop-up window will appear asking if you want to change the "base". Click the green **Change base** button
88

99
If you would like assistance troubleshooting the issue you are encountering, create a post on the [GitHub Community]({{ communityBoard }}) board. You might also want to search for your issue to see if other people have resolved it in the past.

responses/07_pr-succeeds.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ You successfully created a pull request, and it has passed all of the tests. You
77
### :keyboard: Activity: Merge the pull request
88

99
{% if preferences.gitTool == 'cli' %}
10-
1. Check out to the `master` branch:
10+
1. Check out to the `main` branch:
1111
```shell
12-
git checkout master
12+
git checkout main
1313
```
1414
2. Merge your branch:
1515
```shell

responses/es/01_turn-on-gh-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
1. Haz clic en la pestaña [**Settings**]({{ repoUrl }}/settings) de este repositorio
1212
1. Navega a la sección de GitHub Pages
13-
1. En la lista llamada "Source" selecciona **master branch**
13+
1. En la lista llamada "Source" selecciona **main branch**
1414

1515
> Nota: Aunque puedes ver una opción para escoger un tema, no apliques ningún tema en este momento. Hemos protegido el código para que no puedas hacer cambios involuntarios. Tendrás oportunidad de usar un tema cuando terminemos el curso.
1616

responses/es/03_create-a-branch.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Completemos el primer paso del flujo de GitHub: crear una rama (o _branch_) <sup
1010

1111
Acabas de aprender cómo crear una rama—el primer paso del flujo de GitHub.
1212

13-
Las ramas son una parte importante del flujo de GitHub porque nos permite separar nuestro trabajo de la rama principal o `master`. En otras palabras, el trabajo de todos está a salvo mientras aportas contribuciones.
13+
Las ramas son una parte importante del flujo de GitHub porque nos permite separar nuestro trabajo de la rama principal o `main`. En otras palabras, el trabajo de todos está a salvo mientras aportas contribuciones.
1414

1515
### Tips para usar ramas
16-
Un solo proyecto puede tener cientos de ramas, cada una sugiriendo un nuevo cambio a la rama principal o `master`.
16+
Un solo proyecto puede tener cientos de ramas, cada una sugiriendo un nuevo cambio a la rama principal o `main`.
1717

18-
La mejor manera de mantener tus ramas organizadas en un equipo es mantenerlas concisas y efímeras. En otras palabras, una sola rama debería representar solamente una nueva característica o una corrección de errores. Esto permite que haya menos confusión entre colaboradores cuando las ramas solamente están activas por unos días antes de que sean fusionadas <sup>[:book:](https://help.github.com/articles/github-glossary/#merge)</sup> con la rama principal o `master`.
18+
La mejor manera de mantener tus ramas organizadas en un equipo es mantenerlas concisas y efímeras. En otras palabras, una sola rama debería representar solamente una nueva característica o una corrección de errores. Esto permite que haya menos confusión entre colaboradores cuando las ramas solamente están activas por unos días antes de que sean fusionadas <sup>[:book:](https://help.github.com/articles/github-glossary/#merge)</sup> con la rama principal o `main`.
1919

2020
<hr>
2121
</details>
@@ -51,17 +51,17 @@ La mejor manera de mantener tus ramas organizadas en un equipo es mantenerlas co
5151
{{ thePayload.repository.clone_url }}
5252
```
5353
1. Selecciona la ubicación en el que quieres guardar el repositorio y haz clic en **Choose folder**. Después, abre la ubicación que seleccionaste.
54-
1. El directorio del repositiorio debería estar ahora abierto en tu proyecto de VS Code. Haz clic en `master` en la parte inferior de la ventana de VS Code. Esto abrirá la Paleta de Comandos con todos los comandos relacionados a ramas de Git.
54+
1. El directorio del repositiorio debería estar ahora abierto en tu proyecto de VS Code. Haz clic en `main` en la parte inferior de la ventana de VS Code. Esto abrirá la Paleta de Comandos con todos los comandos relacionados a ramas de Git.
5555
![una captura de pantalla de las ramas de Git en VS Code](https://user-images.githubusercontent.com/16547949/53639606-adc76e80-3bf7-11e9-98ac-bd41ae2b40db.png)
5656
1. Haz clic en **Create new branch** e ingresa cualquier nombre que le quieras dar a tu rama, como `mi-rama`. A continuación, presiona <kbd>Enter</kbd>.
57-
1. Cuando te hagan seleccionar la rama que servirá de referencia para tu nueva rama, selecciona `master`.
57+
1. Cuando te hagan seleccionar la rama que servirá de referencia para tu nueva rama, selecciona `main`.
5858
1. Ve a la vista de Source Control, haz clic en los punto suspensivos (...) y selecciona **Push**. En la caja de diálogo preguntándote si quieres publicar tu rama, confirma que sí.
5959
![una captura de pantalla de la vista de Source Control en VS Code](https://user-images.githubusercontent.com/16547949/53640015-ee73b780-3bf8-11e9-8c90-be9022b9555a.png)
6060

6161
{% else %}
6262

6363
1. Navega a la [pestaña titulada Code]({{ thePayload.repository.html_url }})
64-
2. Haz clic en **Branch: master** en el desplegable
64+
2. Haz clic en **Branch: main** en el desplegable
6565
3. En el campo, ingresa un nombre para tu rama, como `mi-rama`
6666
4. Haz clic en **Create branch: <nombre>** o presiona la tecla "Enter" para crear tu rama
6767

responses/es/04_commit-something.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:tada: ¡Haz creado una rama!
44

5-
Crear una rama te permite hacer modificaciones a tu proyecto sin tener que cambiar la rama `master`. Ahora que tienes una rama, es hora de crear un archivo y ¡hacer tu primera confirmación de cambios!
5+
Crear una rama te permite hacer modificaciones a tu proyecto sin tener que cambiar la rama `main`. Ahora que tienes una rama, es hora de crear un archivo y ¡hacer tu primera confirmación de cambios!
66

77
<details><summary>Commits 101</summary>
88

responses/es/05_open-a-pr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Pensemos de nuevo en el flujo de GitHub. Has creado una rama, agregaste un archi
1414
<hr>
1515
</details>
1616

17-
Esta solicitud de extracción mantendrá los cambios que hiciste dentro de tu rama y propondrá aplicarlos a la rama `master`.
17+
Esta solicitud de extracción mantendrá los cambios que hiciste dentro de tu rama y propondrá aplicarlos a la rama `main`.
1818

1919
### :keyboard: Actividad: Crea una solicitud de extracción
2020

2121
1. Abre una solicitud de extracción usando [este atajo]({{ url }}) o manualmente, así:
2222
- Desde la pestaña "Pull requests", haz clic en **New pull request**
23-
- En la lista desplegable llamada "base:", asegúrate que la rama "master" esté seleccionada
23+
- En la lista desplegable llamada "base:", asegúrate que la rama "main" esté seleccionada
2424
- En la lista desplegable llamada "compare:", selecciona "{{ branch | remove: 'refs/heads/' }}"
2525
1. Cuando hayas seleccionado tu rama, escribe un título para tu solicitud de extracción. Por ejemplo `Añadir el archivo de {{ user.username }}`
2626
1. El siguiente campo te ayuda a agregar una descripción de los cambios que has hecho. Agrega una descripción de los cambios que has hecho hasta ahora. Recordatorio: has creado una rama, creado un archivo e iniciado la confirmación de cambios correspondiente y por último has abierto una solicitud de extracción

responses/es/06_fix-base.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Tu rama base debe llamarse `master` (principal). Vamos a abrir una nueva solicitud de extracción para arreglar esto.
1+
Tu rama base debe llamarse `main` (principal). Vamos a abrir una nueva solicitud de extracción para arreglar esto.
22

33
1. Haz clic en el botón **Edit** que está localizado a la derecha del título de la solicitud de extracción.
4-
1. Debajo de la cajita del título del comentario, en el menú desplegable "base:", asegúrate que la rama “master” esté seleccionada.
4+
1. Debajo de la cajita del título del comentario, en el menú desplegable "base:", asegúrate que la rama “main” esté seleccionada.
55
1. Una ventana pop-up va a aparecer para preguntar si quieres cambiar la "base". Haz clic en el botón verde titulado **Change base**
66

77
Si necesitas ayuda buscando una solución a tu problema, crea una publicación en [GitHub Community]({{ communityBoard }}). También puedes buscar otras publicaciones acerca de tu problema si otras personas lo han resuelto previamente.

responses/es/07_pr-succeeds.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Has creado una solicitud de extracción satisfactoriamente, y ha pasado todas la
77
### :keyboard: Actividad: Fusiona tu solicitud de extracción
88

99
{% if preferences.gitTool == 'cli' %}
10-
1. Usa el checkout para cambiarte a la rama `master`:
10+
1. Usa el checkout para cambiarte a la rama `main`:
1111
```shell
12-
git checkout master
12+
git checkout main
1313
```
1414
2. Fusiona tu rama:
1515
```shell

responses/fr/01_turn-on-gh-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Maintenant, au boulot ! GitHub Pages vous permet de servir un site statique à p
1010

1111
1. Cliquez sur l'onglet [**Settings**]({{ repoUrl }}/settings) de ce dépôt
1212
1. Défilez jusqu'à la section "GitHub Pages"
13-
1. Depuis le menu déroulant "Source", selectionnez **master branch**
13+
1. Depuis le menu déroulant "Source", selectionnez **main branch**
1414

1515
> Note : même si vous voyez une option pour choisir un thème, n'appliquez pas de thème à ce stade. Nous avons protégé le code afin que vous ne puissiez pas apporter de modifications involontaires. Vous aurez la possibilité d'appliquer un thème une fois le cours terminé.
1616

0 commit comments

Comments
 (0)