|
3 | 3 | A custom Git command for managing pull requests. You can run it as |
4 | 4 | `git-node` or `git node`. To see the help text, run `git node`. |
5 | 5 |
|
6 | | -- [`git node land`](#git-node-land) |
7 | | - - [Prerequisites](#git-node-land-prerequisites) |
8 | | - - [Git bash for Windows](#git-bash-for-windows) |
9 | | - - [Demo & Usage](#demo--usage) |
10 | | - - [Optional Settings](#git-node-land-optional-settings) |
11 | | -- [`git node backport`](#git-node-backport) |
12 | | - - [Example](#example) |
13 | | -- [`git node release`](#git-node-release) |
14 | | - - [Example](#example-1) |
15 | | -- [`git node sync`](#git-node-sync) |
16 | | -- [`git node metadata`](#git-node-metadata) |
17 | | - - [Optional Settings](#git-node-metadata-optional-settings) |
18 | | -- [`git node v8`](#git-node-v8) |
19 | | - - [Prerequisites](#git-node-v8-prerequisites) |
20 | | - - [`git node v8 major`](#git-node-v8-major) |
21 | | - - [`git node v8 minor`](#git-node-v8-minor) |
22 | | - - [`git node v8 backport <sha..>`](#git-node-v8-backport-sha) |
23 | | - - [General options](#general-options) |
24 | | -- [`git node status`](#git-node-status) |
25 | | - - [Example](#example) |
26 | | -- [`git node wpt`](#git-node-wpt) |
27 | | - - [Example](#example-2) |
| 6 | +- [git-node](#git-node) |
| 7 | + - [`git node land`](#git-node-land) |
| 8 | + - [Prerequisites](#prerequisites) |
| 9 | + - [Git bash for Windows](#git-bash-for-windows) |
| 10 | + - [Demo & Usage](#demo--usage) |
| 11 | + - [Optional Settings](#optional-settings) |
| 12 | + - [`git node backport`](#git-node-backport) |
| 13 | + - [Example](#example) |
| 14 | + - [`git node release`](#git-node-release) |
| 15 | + - [Example](#example-1) |
| 16 | + - [`git node sync`](#git-node-sync) |
| 17 | + - [`git node metadata`](#git-node-metadata) |
| 18 | + - [Optional Settings](#optional-settings-1) |
| 19 | + - [`git node v8`](#git-node-v8) |
| 20 | + - [Prerequisites](#prerequisites-1) |
| 21 | + - [`git node v8 major`](#git-node-v8-major) |
| 22 | + - [`git node v8 minor`](#git-node-v8-minor) |
| 23 | + - [`git node v8 backport <sha..>`](#git-node-v8-backport-sha) |
| 24 | + - [General options](#general-options) |
| 25 | + - [`git node status`](#git-node-status) |
| 26 | + - [Example](#example-2) |
| 27 | + - [`git node wpt`](#git-node-wpt) |
| 28 | + - [Example](#example-3) |
28 | 29 |
|
29 | 30 | ## `git node land` |
30 | 31 |
|
@@ -93,8 +94,8 @@ Examples: |
93 | 94 | # Tell ncu that your upstream remote is named "upstream" |
94 | 95 | $ ncu-config set upstream upstream |
95 | 96 |
|
96 | | - # Tell ncu that you are landing patches to "master" branch |
97 | | - $ ncu-config set branch master |
| 97 | + # Tell ncu that you are landing patches to "main" branch |
| 98 | + $ ncu-config set branch main |
98 | 99 | ``` |
99 | 100 |
|
100 | 101 | Note: If you are behind a firewall and run into `ECONNREFUSED` issues with |
@@ -130,9 +131,9 @@ $ cd path/to/node/project |
130 | 131 |
|
131 | 132 | # If you have not configured it before |
132 | 133 | $ ncu-config set upstream <name-of-remote-to-nodejs/node> |
133 | | -$ ncu-config set branch master # Assuming you are landing commits on master |
| 134 | +$ ncu-config set branch main # Assuming you are landing commits on main |
134 | 135 |
|
135 | | -$ git checkout master |
| 136 | +$ git checkout main |
136 | 137 | $ git node land --abort # Abort a landing session, just in case |
137 | 138 | $ git node land $PRID # Start a new landing session |
138 | 139 | $ git node land $URL # Start a new landing session using the PR URL |
@@ -192,11 +193,11 @@ Options: |
192 | 193 | ``` |
193 | 194 | Backporting https://github.com/nodejs/node/pull/12344 to v10.x |
194 | 195 |
|
195 | | -# Sync master with upstream for the commits, if they are not yet there |
196 | | -$ git checkout master |
| 196 | +# Sync main with upstream for the commits, if they are not yet there |
| 197 | +$ git checkout main |
197 | 198 | $ git node sync |
198 | 199 |
|
199 | | -# Backport existing commits from master to v10.x-staging |
| 200 | +# Backport existing commits from main to v10.x-staging |
200 | 201 | $ git checkout v10.x-staging |
201 | 202 | $ git node sync |
202 | 203 | $ git node backport 12344 --to 10 |
@@ -397,14 +398,14 @@ Return status and information about the current git-node land session. Shows the |
397 | 398 | ### Example |
398 | 399 |
|
399 | 400 | ```sh |
400 | | -node on git:master ❯ git node status 11:32AM |
| 401 | +node on git:main ❯ git node status 11:32AM |
401 | 402 | ✔ Landing session in progress |
402 | 403 | -------------------------------------------------------------------------------- |
403 | 404 | PR: https:/github.com/nodejs/node/pull/34800 |
404 | 405 | State: AMENDING |
405 | 406 | Username: codebytere |
406 | 407 | Upstream: upstream |
407 | | -Branch: master |
| 408 | +Branch: main |
408 | 409 | ``` |
409 | 410 |
|
410 | 411 | ## `git node wpt` |
@@ -441,4 +442,4 @@ $ git node wpt url # Will update test/fixtures/wpt/url and related files |
441 | 442 | $ git node wpt url --commit=43feb7f612fe9160639e09a47933a29834904d69 |
442 | 443 | ``` |
443 | 444 |
|
444 | | -[node.js abi version registry]: https://github.com/nodejs/node/blob/master/doc/abi_version_registry.json |
| 445 | +[node.js abi version registry]: https://github.com/nodejs/node/blob/main/doc/abi_version_registry.json |
0 commit comments