Created
March 4, 2012 19:27
-
Star
(152)
You must be signed in to star a gist -
Fork
(24)
You must be signed in to fork a gist
-
-
Save glennblock/1974465 to your computer and use it in GitHub Desktop.
Force your forked repo to be the same as upstream.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch upstream | |
git reset --hard upstream/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is possible with a one-liner that doesn't require downloading anything...
For anyone interested in syncing your GitHub-hosted fork directly (without cloning locally first) you can do this using the GitHub CLI:
gh repo sync owner/cli-fork -b BRANCH-NAME