From 1ef48631b89141e8b614002b4bdce6560df31958 Mon Sep 17 00:00:00 2001 From: wiggitywhitney <47868428+wiggitywhitney@users.noreply.github.com> Date: Fri, 12 Nov 2021 09:18:28 -0600 Subject: Change 'master' to 'main' in github-workflow markdown (#6221) * Change master to main * Revert changes and add note to clarify that default branch may be called main * Move comments to top of respective codeblocks --- contributors/guide/github-workflow.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'contributors/guide') diff --git a/contributors/guide/github-workflow.md b/contributors/guide/github-workflow.md index 73fbe74c..3c9f76fe 100644 --- a/contributors/guide/github-workflow.md +++ b/contributors/guide/github-workflow.md @@ -67,6 +67,9 @@ git remote -v Get your local master up to date: ```sh +# Depending on which repository you are working from, +# the default branch may be called 'main' instead of 'master'. + cd $working_dir/kubernetes git fetch upstream git checkout master @@ -87,6 +90,9 @@ This workflow is process-specific; for quick start build instructions for [kuber ### 4 Keep your branch in sync ```sh +# Depending on which repository you are working from, +# the default branch may be called 'main' instead of 'master'. + # While on your myfeature branch git fetch upstream git rebase upstream/master @@ -246,6 +252,9 @@ will create the PR branch inside the main repository rather than inside your for - Create a branch and sync it with upstream. ```sh + # Depending on which repository you are working from, + # the default branch may be called 'main' instead of 'master'. + # create a branch git checkout -b myrevert -- cgit v1.2.3