| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2b3b291 commit 5190021
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -721,6 +721,24 @@ Revert all changes that were made to `src/node_version.h`: | |||
| 721 | 721 | $ git checkout --ours HEAD -- src/node_version.h | |
| 722 | 722 | ``` | |
| 723 | 723 | ||
| 724 | + <details> | ||
| 725 | + <summary>Major version release</summary> | ||
| 726 | + | ||
| 727 | + On the main branch, instead of reverting changes made to `src/node_version.h` | ||
| 728 | + edit it instead and: | ||
| 729 | + | ||
| 730 | + * Increment `NODE_MAJOR_VERSION` by one | ||
| 731 | + * Reset `NODE_PATCH_VERSION` to `0` | ||
| 732 | + * Change `NODE_VERSION_IS_RELEASE` back to `0` | ||
| 733 | + | ||
| 734 | + Amend the current commit to apply the changes: | ||
| 735 | + | ||
| 736 | + ```console | ||
| 737 | + $ git commit --amend | ||
| 738 | + ``` | ||
| 739 | + | ||
| 740 | + </details> | ||
| 741 | + | ||
| 724 | 742 | Even if there are no conflicts, ensure that you revert all the changes that were | |
| 725 | 743 | made to `src/node_version.h`. | |
| 726 | 744 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments