doc: update main branch name in onboarding.md

PR-URL: https://github.com/nodejs/node/pull/43443
Refs: https://github.com/nodejs/node/issues/33864
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
Feng Yu 2022-06-17 06:22:59 +08:00 committed by GitHub
parent 677bd668b7
commit 2af48c0ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ onboarding session.
* Add the canonical nodejs repository as `upstream` remote: * Add the canonical nodejs repository as `upstream` remote:
* `git remote add upstream git@github.com:nodejs/node.git` * `git remote add upstream git@github.com:nodejs/node.git`
* To update from `upstream`: * To update from `upstream`:
* `git checkout master` * `git checkout main`
* `git fetch upstream HEAD` * `git fetch upstream HEAD`
* `git reset --hard FETCH_HEAD` * `git reset --hard FETCH_HEAD`
* Make a new branch for each pull request you submit. * Make a new branch for each pull request you submit.