Skip to content

Instantly share code, notes, and snippets.

@dppeak
Forked from Saissaken/Update git fork with tags.sh
Last active March 2, 2021 23:06
Show Gist options
  • Save dppeak/6f92c050e4be6aca4a9ab62e3c385975 to your computer and use it in GitHub Desktop.
Save dppeak/6f92c050e4be6aca4a9ab62e3c385975 to your computer and use it in GitHub Desktop.
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
git rebase upstream/master
git push # May need to use -f to force push
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment