Last active
November 25, 2020 04:46
-
-
Save Elijas/895544cef2a89e22d8364a6a5ef32567 to your computer and use it in GitHub Desktop.
Pull upstream changes
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
#!/bin/bash -xe | |
UPSTREAM_REPO_URL=... | |
git remote add upstream "$UPSTREAM_REPO_URL" || true | |
git pull origin main | |
git checkout main | |
git fetch upstream | |
git merge upstream/main | |
git push origin main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment