git clone git@github.com: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
git pull upstream master
git push
Developer settingsIn the left sidebar, click Developer settings.
Personal access tokensIn the left sidebar, click Personal access tokens.
Generate new token buttonClick Generate new token.
Token description fieldGive your token a descriptive name.
Selecting token scopesSelect the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.
Generate token buttonClick Generate token.
Newly created tokenClick to copy the token to your clipboard. For security reasons, after you navigate off the page, you will not be able to see the token again.
Once you have a token, you can enter it instead of your password when performing Git operations over HTTPS.
For example, on the command line you would enter the following:
git clone https://github.com/username/repo.git
Username: your_username
Password: your_token
Clone your wiki
git clone https://github.com/username/repo.wiki.git
Access your local cloned wiki
cd /path/to/local/cloned/wiki
git add .
git commit -m "new files"
git push