sync-fork icon indicating copy to clipboard operation
sync-fork copied to clipboard

Syncing a Fork with the main repository

sync-fork

Syncing a Fork with the main repository

Installation

  • Copy the sh to your local repository root directory.

Usage

  • sh ./sync-local-upstream.sh [YOUR_FORK_ROOT]
  • It is good for cooperate with crontab.

Attention

  • It is suitable for the nodejs project that included the "package.json".
  • If your fork is the nodejs project that you will need jq installed at first.
  • Otherwise your fork is not the nodejs project, it will require the source repository url input.