git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| ### Basic ### | |
| # The directory to store the downloaded file. | |
| dir=${HOME}/Downloads | |
| # Downloads the URIs listed in FILE. | |
| input-file=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to FILE on exit. | |
| save-session=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
| save-session-interval=60 | |
| # Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
| 1. Copy 'git-sync-fork' script code from gist | |
| 2. Create a file called 'git-sync-fork' in any 'bin' directory in your $PATH | |
| 3. Paste script into this new file 'git-sync-fork' and save | |
| 4. Make the file executable `chmod +x git-sync-fork` | |
| 5. Run the script inside your locally forked git repo | |
| Example: | |
| git-sync-fork upstream origin |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream