Skip to content

Commit 1ef4863

Browse files
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
1 parent 24f87a0 commit 1ef4863

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contributors/guide/github-workflow.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ git remote -v
6767
Get your local master up to date:
6868

6969
```sh
70+
# Depending on which repository you are working from,
71+
# the default branch may be called 'main' instead of 'master'.
72+
7073
cd $working_dir/kubernetes
7174
git fetch upstream
7275
git checkout master
@@ -87,6 +90,9 @@ This workflow is process-specific; for quick start build instructions for [kuber
8790
### 4 Keep your branch in sync
8891

8992
```sh
93+
# Depending on which repository you are working from,
94+
# the default branch may be called 'main' instead of 'master'.
95+
9096
# While on your myfeature branch
9197
git fetch upstream
9298
git rebase upstream/master
@@ -246,6 +252,9 @@ will create the PR branch inside the main repository rather than inside your for
246252
- Create a branch and sync it with upstream.
247253

248254
```sh
255+
# Depending on which repository you are working from,
256+
# the default branch may be called 'main' instead of 'master'.
257+
249258
# create a branch
250259
git checkout -b myrevert
251260

0 commit comments

Comments
 (0)