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

Rename master to main in all instructions and config #56

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ For more information on the goals of this course, check out the [`course-details

## Contribute

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.
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.

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.
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.

## License

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.
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.

When using the GitHub logos, be sure to follow the [GitHub logo guidelines](https://github.com/logos)
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ steps:
- type: gate
left: '%payload.pull_request.base.ref%'
operator: ===
right: master
right: main
else:
- type: createReview
body: 06_fix-base.md
Expand Down
2 changes: 1 addition & 1 deletion responses/01_turn-on-gh-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Now, on to business! GitHub Pages allow you to serve a static site from a reposi

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

> 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.

Expand Down
12 changes: 6 additions & 6 deletions responses/03_create-a-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Let’s complete the first step of the GitHub flow: creating a branch <sup>[:boo

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

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.
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.

### Tips for using branches

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

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.
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.

<hr>
</details>
Expand Down Expand Up @@ -52,17 +52,17 @@ The best way to keep branches organized with a team is to keep them concise and
{{ thePayload.repository.clone_url }}
```
1. Select the location in which to save the repository and click **Choose folder**. Then, open the location you selected.
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.
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.
![a screenshot of the Git branches in VS Code](https://user-images.githubusercontent.com/16547949/53639606-adc76e80-3bf7-11e9-98ac-bd41ae2b40db.png)
1. Click **Create new branch** and enter any branch name you'd like, such as `my-slide`. Then press <kbd>Enter</kbd>.
1. When asked to select the ref to create the branch from, select `master`.
1. When asked to select the ref to create the branch from, select `main`.
1. Go to the Source Control view, click on the ellipsis (...) and select **Push**. Confirm the dialog box asking you to publish the branch.
![a screenshot of the source control view in VS Code](https://user-images.githubusercontent.com/16547949/53640015-ee73b780-3bf8-11e9-8c90-be9022b9555a.png)

{% else %}

1. Navigate to the [Code tab]({{ thePayload.repository.html_url }})
2. Click **Branch: master** in the drop-down
2. Click **Branch: main** in the drop-down
3. In the field, enter a name for your branch, like `my-slide`
4. Click **Create branch: <name>** or press the <kbd>Enter</kbd> key to create your branch

Expand Down
2 changes: 1 addition & 1 deletion responses/04_commit-something.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:tada: You created a branch!

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!
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!

<details><summary>Commits 101</summary>

Expand Down
4 changes: 2 additions & 2 deletions responses/05_open-a-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Let’s think back to the GitHub flow again. You have created a branch, added a
<hr>
</details>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • #_****
Suggested change
</details>
</details>

****_


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

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

1. Open a pull request using [this shortcut]({{ url }}) or manually as follows:
- From the "Pull requests" tab, click **New pull request**
- In the "base:" drop-down menu, make sure the "master" branch is selected
- In the "base:" drop-down menu, make sure the "main" branch is selected
- In the "compare:" drop-down menu, select "{{ branch | remove: 'refs/heads/' }}"
1. When you’ve selected your branch, enter a title for your pull request. For example `Add {{ user.username }}'s file`
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
Expand Down
4 changes: 2 additions & 2 deletions responses/06_fix-base.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Your base branch should be named `master`. Let's open a new pull request to fix this.
Your base branch should be named `main`. Let's open a new pull request to fix this.

### :keyboard: Activity: Adjust PR direction

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

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.
Expand Down
4 changes: 2 additions & 2 deletions responses/07_pr-succeeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ You successfully created a pull request, and it has passed all of the tests. You
### :keyboard: Activity: Merge the pull request

{% if preferences.gitTool == 'cli' %}
1. Check out to the `master` branch:
1. Check out to the `main` branch:
```shell
git checkout master
git checkout main
```
2. Merge your branch:
```shell
Expand Down
2 changes: 1 addition & 1 deletion responses/es/01_turn-on-gh-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

> 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.

Expand Down
12 changes: 6 additions & 6 deletions responses/es/03_create-a-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Completemos el primer paso del flujo de GitHub: crear una rama (o _branch_) <sup

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

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.
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.

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

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`.
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`.

<hr>
</details>
Expand Down Expand Up @@ -51,17 +51,17 @@ La mejor manera de mantener tus ramas organizadas en un equipo es mantenerlas co
{{ thePayload.repository.clone_url }}
```
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.
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.
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.
![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)
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>.
1. Cuando te hagan seleccionar la rama que servirá de referencia para tu nueva rama, selecciona `master`.
1. Cuando te hagan seleccionar la rama que servirá de referencia para tu nueva rama, selecciona `main`.
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í.
![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)

{% else %}

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

Expand Down
2 changes: 1 addition & 1 deletion responses/es/04_commit-something.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:tada: ¡Haz creado una rama!

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!
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!

<details><summary>Commits 101</summary>

Expand Down
4 changes: 2 additions & 2 deletions responses/es/05_open-a-pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Pensemos de nuevo en el flujo de GitHub. Has creado una rama, agregaste un archi
<hr>
</details>

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

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

1. Abre una solicitud de extracción usando [este atajo]({{ url }}) o manualmente, así:
- Desde la pestaña "Pull requests", haz clic en **New pull request**
- En la lista desplegable llamada "base:", asegúrate que la rama "master" esté seleccionada
- En la lista desplegable llamada "base:", asegúrate que la rama "main" esté seleccionada
- En la lista desplegable llamada "compare:", selecciona "{{ branch | remove: 'refs/heads/' }}"
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 }}`
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
Expand Down
4 changes: 2 additions & 2 deletions responses/es/06_fix-base.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Tu rama base debe llamarse `master` (principal). Vamos a abrir una nueva solicitud de extracción para arreglar esto.
Tu rama base debe llamarse `main` (principal). Vamos a abrir una nueva solicitud de extracción para arreglar esto.

1. Haz clic en el botón **Edit** que está localizado a la derecha del título de la solicitud de extracción.
1. Debajo de la cajita del título del comentario, en el menú desplegable "base:", asegúrate que la rama “master” esté seleccionada.
1. Debajo de la cajita del título del comentario, en el menú desplegable "base:", asegúrate que la rama “main” esté seleccionada.
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**

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.
Expand Down
4 changes: 2 additions & 2 deletions responses/es/07_pr-succeeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Has creado una solicitud de extracción satisfactoriamente, y ha pasado todas la
### :keyboard: Actividad: Fusiona tu solicitud de extracción

{% if preferences.gitTool == 'cli' %}
1. Usa el checkout para cambiarte a la rama `master`:
1. Usa el checkout para cambiarte a la rama `main`:
```shell
git checkout master
git checkout main
```
2. Fusiona tu rama:
```shell
Expand Down
2 changes: 1 addition & 1 deletion responses/fr/01_turn-on-gh-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Maintenant, au boulot ! GitHub Pages vous permet de servir un site statique à p

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

> 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é.

Expand Down
Loading