Skip to content

Instantly share code, notes, and snippets.

@onlinejudge95
Created December 12, 2019 06:53
Show Gist options
  • Save onlinejudge95/911e9e671080b8de3cd0653258d92c08 to your computer and use it in GitHub Desktop.
Save onlinejudge95/911e9e671080b8de3cd0653258d92c08 to your computer and use it in GitHub Desktop.
Update your fork

1. Clone your fork 🍴

git clone https://github.com/{$YOUR_USER_NAME}/{$YOUR_FORKED_REPO}.git

2. Add upstream as a remote

cd /path/to/fork
git remote add upstream https://github.com/{$UPSTREAM_USER_NAME}/{$UPSTREAM_REPO}.git
git fetch upstream

3. Pulling in upstream changes

git pull upstream master

4. Pushing new changes to your fork 🍴

git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment