Created
September 21, 2020 06:01
-
-
Save officialcjunior/bb9ff2df97ec8773ac7687ac6ea7c114 to your computer and use it in GitHub Desktop.
I use this script to sync my fork with the upstream (original repo).
This file contains hidden or 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
#!/bin/sh | |
# fetches the new stuff from upstream. I hope you've added the link to the original repo as 'upstream' | |
git fetch upstream | |
git checkout master | |
# prunes unwanted branches | |
git fetch --all --prune | |
# merges without your master | |
git merge upstream/master | |
#pushes it up to your fork. | |
git push | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment