From fe173a04d487a85199a0996eafb5729cea69db16 Mon Sep 17 00:00:00 2001 From: Briana Swift Date: Wed, 14 Oct 2020 12:37:51 +0200 Subject: [PATCH] rename master to main in all instructions and config --- README.md | 6 +++--- config.yml | 2 +- responses/01_turn-on-gh-pages.md | 2 +- responses/03_create-a-branch.md | 12 ++++++------ responses/04_commit-something.md | 2 +- responses/05_open-a-pr.md | 4 ++-- responses/06_fix-base.md | 4 ++-- responses/07_pr-succeeds.md | 4 ++-- responses/es/01_turn-on-gh-pages.md | 2 +- responses/es/03_create-a-branch.md | 12 ++++++------ responses/es/04_commit-something.md | 2 +- responses/es/05_open-a-pr.md | 4 ++-- responses/es/06_fix-base.md | 4 ++-- responses/es/07_pr-succeeds.md | 4 ++-- responses/fr/01_turn-on-gh-pages.md | 2 +- responses/fr/03_create-a-branch.md | 12 ++++++------ responses/fr/04_commit-something.md | 2 +- responses/fr/05_open-a-pr.md | 4 ++-- responses/fr/06_fix-base.md | 4 ++-- responses/fr/07_pr-succeeds.md | 4 ++-- responses/ja/01_turn-on-gh-pages.md | 2 +- responses/ja/03_create-a-branch.md | 12 ++++++------ responses/ja/04_commit-something.md | 2 +- responses/ja/05_open-a-pr.md | 4 ++-- responses/ja/06_fix-base.md | 4 ++-- responses/ja/07_pr-succeeds.md | 4 ++-- 26 files changed, 60 insertions(+), 60 deletions(-) diff --git a/README.md b/README.md index 2fb56c9..8d012d3 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/config.yml b/config.yml index dd3a363..30a661c 100644 --- a/config.yml +++ b/config.yml @@ -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 diff --git a/responses/01_turn-on-gh-pages.md b/responses/01_turn-on-gh-pages.md index 150848a..1e9e78b 100644 --- a/responses/01_turn-on-gh-pages.md +++ b/responses/01_turn-on-gh-pages.md @@ -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. diff --git a/responses/03_create-a-branch.md b/responses/03_create-a-branch.md index 81b941f..5b5cf78 100644 --- a/responses/03_create-a-branch.md +++ b/responses/03_create-a-branch.md @@ -10,13 +10,13 @@ Let’s complete the first step of the GitHub flow: creating a branch [: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 [:book:](https://help.github.com/articles/github-glossary/#merge) 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 [:book:](https://help.github.com/articles/github-glossary/#merge) into the `main` branch.
@@ -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 Enter. -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: ** or press the Enter key to create your branch diff --git a/responses/04_commit-something.md b/responses/04_commit-something.md index 7649327..6d84964 100644 --- a/responses/04_commit-something.md +++ b/responses/04_commit-something.md @@ -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!
Commits 101 diff --git a/responses/05_open-a-pr.md b/responses/05_open-a-pr.md index 8e1fc0a..048c15d 100644 --- a/responses/05_open-a-pr.md +++ b/responses/05_open-a-pr.md @@ -14,13 +14,13 @@ Let’s think back to the GitHub flow again. You have created a branch, added a
-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 diff --git a/responses/06_fix-base.md b/responses/06_fix-base.md index be3941e..a75a220 100644 --- a/responses/06_fix-base.md +++ b/responses/06_fix-base.md @@ -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. diff --git a/responses/07_pr-succeeds.md b/responses/07_pr-succeeds.md index 61f1375..eeddc51 100644 --- a/responses/07_pr-succeeds.md +++ b/responses/07_pr-succeeds.md @@ -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 diff --git a/responses/es/01_turn-on-gh-pages.md b/responses/es/01_turn-on-gh-pages.md index 3cd115e..7ee381d 100644 --- a/responses/es/01_turn-on-gh-pages.md +++ b/responses/es/01_turn-on-gh-pages.md @@ -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. diff --git a/responses/es/03_create-a-branch.md b/responses/es/03_create-a-branch.md index 52c364a..6e386a2 100644 --- a/responses/es/03_create-a-branch.md +++ b/responses/es/03_create-a-branch.md @@ -10,12 +10,12 @@ Completemos el primer paso del flujo de GitHub: crear una rama (o _branch_) [:book:](https://help.github.com/articles/github-glossary/#merge) 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 [:book:](https://help.github.com/articles/github-glossary/#merge) con la rama principal o `main`.
@@ -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 Enter. -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: ** o presiona la tecla "Enter" para crear tu rama diff --git a/responses/es/04_commit-something.md b/responses/es/04_commit-something.md index e4991ad..31bd99d 100644 --- a/responses/es/04_commit-something.md +++ b/responses/es/04_commit-something.md @@ -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!
Commits 101 diff --git a/responses/es/05_open-a-pr.md b/responses/es/05_open-a-pr.md index 712ea14..60a1ce5 100644 --- a/responses/es/05_open-a-pr.md +++ b/responses/es/05_open-a-pr.md @@ -14,13 +14,13 @@ Pensemos de nuevo en el flujo de GitHub. Has creado una rama, agregaste un archi
-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 diff --git a/responses/es/06_fix-base.md b/responses/es/06_fix-base.md index 30ac0f5..04f8afb 100644 --- a/responses/es/06_fix-base.md +++ b/responses/es/06_fix-base.md @@ -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. diff --git a/responses/es/07_pr-succeeds.md b/responses/es/07_pr-succeeds.md index cd133c4..f87937d 100644 --- a/responses/es/07_pr-succeeds.md +++ b/responses/es/07_pr-succeeds.md @@ -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 diff --git a/responses/fr/01_turn-on-gh-pages.md b/responses/fr/01_turn-on-gh-pages.md index 011c8ab..3815684 100644 --- a/responses/fr/01_turn-on-gh-pages.md +++ b/responses/fr/01_turn-on-gh-pages.md @@ -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é. diff --git a/responses/fr/03_create-a-branch.md b/responses/fr/03_create-a-branch.md index 7136b58..c4f9d21 100644 --- a/responses/fr/03_create-a-branch.md +++ b/responses/fr/03_create-a-branch.md @@ -10,13 +10,13 @@ Réalisons la première étape d'une démarche typique sur GitHub : la création Vous venez d'apprendre à créer une branche, la première étape du travail sur GitHub. -Les branches sont des éléments importants de la démarche sur GitHub car elles nous permettent d'isoler le travail en cours de la branche principale `master`. En d'autres termes, le travail des autres est protégé pendant que vous mettez au point votre contribution. +Les branches sont des éléments importants de la démarche sur GitHub car elles nous permettent d'isoler le travail en cours de la branche principale `main`. En d'autres termes, le travail des autres est protégé pendant que vous mettez au point votre contribution. ### Conseils pour l'utilisation de branches -Un projet seul peut avoir des centaines de branches, chacune comportant une nouvelle modification de la branche `master`. +Un projet seul peut avoir des centaines de branches, chacune comportant une nouvelle modification de la branche `main`. -La meilleure façon de gérer ces branches quand on travaille en équipe est de veiller à les maintenir concises et éphémères. Autrement dit, une branche doit comporter une seule nouvelle fonctionalité ou correction de bug. Les incompréhensions entre contributeurs sont réduites lorsque les branches ne sont actives que quelques jours avant d'être fusionnées [:book:](https://help.github.com/articles/github-glossary/#merge) avec la branche `master`. +La meilleure façon de gérer ces branches quand on travaille en équipe est de veiller à les maintenir concises et éphémères. Autrement dit, une branche doit comporter une seule nouvelle fonctionalité ou correction de bug. Les incompréhensions entre contributeurs sont réduites lorsque les branches ne sont actives que quelques jours avant d'être fusionnées [:book:](https://help.github.com/articles/github-glossary/#merge) avec la branche `main`.
@@ -52,17 +52,17 @@ La meilleure façon de gérer ces branches quand on travaille en équipe est de {{ thePayload.repository.clone_url }} ``` 1. Sélectionnez l'emplacement où sauvegarder le dépôt et cliquez **Choose folder**. Ouvrez ensuite l'emplacement que vous avez sélectionné. -1. Le répertoire du dépôt doit maintenant être ouvert dans votre espace de travail VS Code. Cliquez sur `master` en bas et à gauche de la fenêtre VS Code. Ceci ouvrira la palette avec les commandes relatives aux branches Git. +1. Le répertoire du dépôt doit maintenant être ouvert dans votre espace de travail VS Code. Cliquez sur `main` en bas et à gauche de la fenêtre VS Code. Ceci ouvrira la palette avec les commandes relatives aux branches Git. ![a screenshot of the Git branches in VS Code](https://user-images.githubusercontent.com/16547949/53639606-adc76e80-3bf7-11e9-98ac-bd41ae2b40db.png) 1. Cliquez sur **Create new branch** et saisissez le nom que vous désirez, par exemple `my-slide`. Pressez ensuite Enter. -1. Lorsqu'il vous est demandé de sélectioner la référence à partir de laquelle créer la branche, sélectioner `master`. +1. Lorsqu'il vous est demandé de sélectioner la référence à partir de laquelle créer la branche, sélectioner `main`. 1. Allez dans la vue "Source Control", cliquez sur les points de suspension (...) et séléctionnez **Push**. Confirmez lorsque le boite de dialogue vous propose de publier la branche. ![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. Naviguez vers [l'onglet Code]({{ thePayload.repository.html_url }}) -2. Cliquez **Branch: master** dans la liste déroulante +2. Cliquez **Branch: main** dans la liste déroulante 3. Dans le champs de texte, saisissez un nom de branche, tel que `my-slide` 4. Cliquez **Create branch: ** ou pressez la touche Enter pour créer votre branche diff --git a/responses/fr/04_commit-something.md b/responses/fr/04_commit-something.md index df5e83f..07ed532 100644 --- a/responses/fr/04_commit-something.md +++ b/responses/fr/04_commit-something.md @@ -2,7 +2,7 @@ :tada: Vous avez créé une branche! -Créer une branche vous permet d'apporter des modifications à votre projet sans changer `master`, la branche déployée. Maintenant que vous avez une branche, il est temps de créer un fichier et d'effectuer votre première contribution! +Créer une branche vous permet d'apporter des modifications à votre projet sans changer `main`, la branche déployée. Maintenant que vous avez une branche, il est temps de créer un fichier et d'effectuer votre première contribution!
Bases de la contribution diff --git a/responses/fr/05_open-a-pr.md b/responses/fr/05_open-a-pr.md index e0daee9..8476910 100644 --- a/responses/fr/05_open-a-pr.md +++ b/responses/fr/05_open-a-pr.md @@ -14,13 +14,13 @@ Revenons au workflow de GitHub. Vous avez créé une branche, ajouté un fichier
-Cette Pull Request va conserver les modifications que vous venez de faire sur votre branche tout en proposant de les appliquer également à la branche `master`. +Cette Pull Request va conserver les modifications que vous venez de faire sur votre branche tout en proposant de les appliquer également à la branche `main`. ### :keyboard: Activité: Créer une Pull Request 1. Ouvrez une Pull Request grâce à [ce raccourci]({{ url }}) ou manuellement comme suit : - Depuis l'onglet "Pull requests", cliquez **New pull request** - - Dans le menu déroulant "base:", assurez vous que la branche `master` est sélectionnée + - Dans le menu déroulant "base:", assurez vous que la branche `main` est sélectionnée - Dans le menu déroulant "compare:", sélectionnez "{{ branch | remove: 'refs/heads/' }}" 1. Lorsque vous avez sélectionné votre branche, saisissez un titre pour votre Pull Request. Par exemple `Ajout du fichier de {{ user.username }}` 1. Le champ suivant vous aide à fournir une description des modifications que vous avez apportées. N'hésitez pas à ajouter une description de ce que vous avez accompli jusqu'à présent. Pour rappel, vous avez: créé une branche, créé un fichier et effectué une contribution, et ouvert une Pull Request diff --git a/responses/fr/06_fix-base.md b/responses/fr/06_fix-base.md index 225bd8f..9a49733 100644 --- a/responses/fr/06_fix-base.md +++ b/responses/fr/06_fix-base.md @@ -1,9 +1,9 @@ -Votre branche de référence doit être nommée `master`. Ouvrons une Pull Request afin de corriger cela. +Votre branche de référence doit être nommée `main`. Ouvrons une Pull Request afin de corriger cela. ### :keyboard: Activité: Modifier la direction de la Pull Request 1. Cliquez sur le bouton **Edit** situé à droite du titre de la PR -1. Sous le champ de texte du titre, dans le menu déroulant "base:", assurez vous que la branche `master` est sélectionnée +1. Sous le champ de texte du titre, dans le menu déroulant "base:", assurez vous que la branche `main` est sélectionnée 1. Une boite de dialogue apparaitra vous demandeant si vous voulez changer la base. Cliquez le bouton vert **Change base** Si vous avez besoin d'assistance, créez une conversation sur le forum [GitHub Community]({{ communityBoard }}). Vous pouvez également y effectuer une recherche et vérifiez si d'autres n'ont pas rencontré et résolu un problème similaire dans le passé. diff --git a/responses/fr/07_pr-succeeds.md b/responses/fr/07_pr-succeeds.md index 8d6e3ed..a55ee90 100644 --- a/responses/fr/07_pr-succeeds.md +++ b/responses/fr/07_pr-succeeds.md @@ -7,9 +7,9 @@ Vous avez créé avec succès une Pull Request et elle a passé tous les tests a ### :keyboard: Activité: Fusionnez votre Pull Request {% if preferences.gitTool == 'cli' %} -1. Récupérez votre branche `master` : +1. Récupérez votre branche `main` : ```shell - git checkout master + git checkout main ``` 2. Fusionnez votre branche : ```shell diff --git a/responses/ja/01_turn-on-gh-pages.md b/responses/ja/01_turn-on-gh-pages.md index 4fc043e..8bd493d 100755 --- a/responses/ja/01_turn-on-gh-pages.md +++ b/responses/ja/01_turn-on-gh-pages.md @@ -10,7 +10,7 @@ GitHub Pagesはリポジトリから静的サイトを作る機能です。い 1. このリポジトリの[**Settings**]({{ repoUrl }}/settings)タブをクリックしましょう 1. "GitHub Pages"のセクションまでスクロールダウンしましょう -1. "Source"ドロップダウンから、**master branch** を選択しましょう +1. "Source"ドロップダウンから、**main branch** を選択しましょう > 注意:テーマを選択できる設定が目に入ったとしても、現時点ではテーマの適用はしないでおきましょう。意図しない変更が入らないよう、コードは保護されています。コースが完了したら、テーマを設定できるようになります。 diff --git a/responses/ja/03_create-a-branch.md b/responses/ja/03_create-a-branch.md index eb36deb..69335b6 100755 --- a/responses/ja/03_create-a-branch.md +++ b/responses/ja/03_create-a-branch.md @@ -10,13 +10,13 @@ GitHubフローの最初のステップに取り掛かりましょう:つま さて、GitHubフローの最初のステップとしてブランチの作成方法を学びました。 -ブランチを作ることによって`master`ブランチからあなたの作業を分離することができるため、ブランチはGitHubフローにおいて重要な役割を果たします。言い換えれば、誰もが安全な場所でコントリビュートを始めることができるのです。 +ブランチを作ることによって`main`ブランチからあなたの作業を分離することができるため、ブランチはGitHubフローにおいて重要な役割を果たします。言い換えれば、誰もが安全な場所でコントリビュートを始めることができるのです。 ### ブランチを使う際のコツ -1つのプロジェクトの中にブランチは何百と作成され、それぞれが`master`ブランチへの変更の提案となります。 +1つのプロジェクトの中にブランチは何百と作成され、それぞれが`main`ブランチへの変更の提案となります。 -これらのブランチをチーム全体で管理可能な状態を保つには一つ一つのブランチを完結で短命に保つことが必要です。言い換えると、1つの新しい機能か1つのバグフィックスごとに1つのブランチを作成するべきです。こうすることで、ブランチが`master`ブランチにマージ [:book:](https://help.github.com/articles/github-glossary/#merge) されるまでのアクティブな期間を数日に保つことができ、他のコントリビューターが混乱する可能性を減らすことが出来ます。 +これらのブランチをチーム全体で管理可能な状態を保つには一つ一つのブランチを完結で短命に保つことが必要です。言い換えると、1つの新しい機能か1つのバグフィックスごとに1つのブランチを作成するべきです。こうすることで、ブランチが`main`ブランチにマージ [:book:](https://help.github.com/articles/github-glossary/#merge) されるまでのアクティブな期間を数日に保つことができ、他のコントリビューターが混乱する可能性を減らすことが出来ます。
@@ -52,17 +52,17 @@ GitHubフローの最初のステップに取り掛かりましょう:つま {{ thePayload.repository.clone_url }} ``` 1. リポジトリを保存する場所を選択し、**Choose folder** をクリックします。その後、選択したフォルダーを開きましょう。 -1. リポジトリのフォルダーがVS Codeのプロジェクトに開かれているはずです。VS Codeのウィンドウの左下にある`master`をクリックしましょう。Gitブランチに関連するコマンドが表示されたコマンドパレットが表示されるはずです。 +1. リポジトリのフォルダーがVS Codeのプロジェクトに開かれているはずです。VS Codeのウィンドウの左下にある`main`をクリックしましょう。Gitブランチに関連するコマンドが表示されたコマンドパレットが表示されるはずです。 ![a screenshot of the Git branches in VS Code](https://user-images.githubusercontent.com/16547949/53639606-adc76e80-3bf7-11e9-98ac-bd41ae2b40db.png) 1. **Create new branch** をクリックし、好きなブランチ名を入力しましょう。例えば`my-slide`といったものです。その後、Enterを押します。 -1. どのrefからブランチを作成するか尋ねられた場合、`master`を選択しましょう。 +1. どのrefからブランチを作成するか尋ねられた場合、`main`を選択しましょう。 1. Source Controlビューに移動し、...をクリックし **Push** を選択します。ブランチを公開するか尋ねるダイアログボックスを確認しましょう。 ![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. [Codeタブ]({{ thePayload.repository.html_url }})に移動しましょう -2. **Branch: master** ドロップダウンをクリックしましょう +2. **Branch: main** ドロップダウンをクリックしましょう 3. 入力フィールドに、例えば`my-slide`のように、作成するブランチの名前を入力しましょう 4. **Create branch: ** をクリックするか、"Enter"キーを押し、ブランチを作成しましょう diff --git a/responses/ja/04_commit-something.md b/responses/ja/04_commit-something.md index 7c97bf5..f6390c8 100755 --- a/responses/ja/04_commit-something.md +++ b/responses/ja/04_commit-something.md @@ -2,7 +2,7 @@ :tada: ブランチを作成できました! -ブランチを作成することで、`master`ブランチに変更を加えることなくプロジェクトへの修正を行うことができるようになります。さて、ブランチの作成が完了したので、次はファイルを作成し、初めてのコミットを行いましょう! +ブランチを作成することで、`main`ブランチに変更を加えることなくプロジェクトへの修正を行うことができるようになります。さて、ブランチの作成が完了したので、次はファイルを作成し、初めてのコミットを行いましょう!
コミットの基礎 diff --git a/responses/ja/05_open-a-pr.md b/responses/ja/05_open-a-pr.md index 778768a..b6d3a04 100755 --- a/responses/ja/05_open-a-pr.md +++ b/responses/ja/05_open-a-pr.md @@ -14,13 +14,13 @@ GitHubフローを思い返してみましょう。ブランチの作成をし
-このプルリクエストは、ブランチに対して行った変更を保持し、`master`ブランチへ取り込むためのものです。 +このプルリクエストは、ブランチに対して行った変更を保持し、`main`ブランチへ取り込むためのものです。 ### :keyboard: やってみよう:プルリクエストの作成 1. [このリンク]({{ url }})をクリックするか、下記手順によってプルリクエストを作成しましょう: - "Pull requests"タブから、**New pull request**をクリックしましょう - - "base:"ドロップダウンメニューでは、"master"が選択されている事を確認しましょう + - "base:"ドロップダウンメニューでは、"main"が選択されている事を確認しましょう - "compare:"ドロップダウンメニューでは、"{{ branch | remove: 'refs/heads/' }}"を選択しましょう - "Create pull request"ボタンを押しましょう 1. ブランチを選択したら、プルリクエストのタイトルを入力しましょう。例えば`{{ user.username }}のファイルを追加`などです。 diff --git a/responses/ja/06_fix-base.md b/responses/ja/06_fix-base.md index 025aac0..83785cc 100755 --- a/responses/ja/06_fix-base.md +++ b/responses/ja/06_fix-base.md @@ -1,9 +1,9 @@ -ベースブランチは`master`である必要があります。新しいプルリクエストを作成し、これを修正しましょう。 +ベースブランチは`main`である必要があります。新しいプルリクエストを作成し、これを修正しましょう。 ### :keyboard: やってみよう:プルリクエストのマージ先の修正 1. プルリクエストのタイトルの右側にある**Edit**ボタンをクリックしましょう -1. タイトルのコメントボックスの下の"base:"ドロップダウンメニューで"master"が選択されている事を確認しましょう +1. タイトルのコメントボックスの下の"base:"ドロップダウンメニューで"main"が選択されている事を確認しましょう 1. "base"を変更してよいかどうかを確認するポップアップウィンドウが表示されます。緑の**Change base**ボタンをクリックしましょう もしなにか問題に遭遇し、解決するのに助けが必要であれば、[GitHub Community]({{ communityBoard }})に書き込んでください。他の人が過去に解決した問題を検索することも出来ます。 diff --git a/responses/ja/07_pr-succeeds.md b/responses/ja/07_pr-succeeds.md index 7c9dab0..2b00686 100755 --- a/responses/ja/07_pr-succeeds.md +++ b/responses/ja/07_pr-succeeds.md @@ -7,9 +7,9 @@ ### :keyboard: やってみよう:プルリクエストのマージ {% if preferences.gitTool == 'cli' %} -1. `master`ブランチをチェックアウトする: +1. `main`ブランチをチェックアウトする: ```shell - git checkout master + git checkout main ``` 2. ブランチをマージする: ```shell