Skip to content

Instantly share code, notes, and snippets.

@nunomcruz
Forked from CristinaSolana/gist:1885435
Last active March 6, 2020 00:16
Show Gist options
  • Save nunomcruz/bad50c9a3087000e5a57aae3ef166db5 to your computer and use it in GitHub Desktop.
Save nunomcruz/bad50c9a3087000e5a57aae3ef166db5 to your computer and use it in GitHub Desktop.
Keeping a fork up to date

1. Clone your fork:

git clone https://github.com/nunomcruz/pycom-micropython-sigfox.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream https://github.com/pycom/pycom-micropython-sigfox.git -t Dev
git fetch upstream

3. Updating your fork from original repo to keep up with their changes:

git pull upstream Dev

4. Commit changes

git commit -a -m "Merged with master"

5. Send updates

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