Created
December 23, 2021 21:08
-
-
Save SvS30/28ad2649553a68e66d1237ba729ec59d to your computer and use it in GitHub Desktop.
Steps for Upstream branch add
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
# url is a variable, the value must be the forked repository | |
git remote add upstream $url | |
# check for any changes onto upstream | |
git fetch upstream | |
# pull changes from upstream, branch is a variable. | |
git rebase upstream/$branch | |
# push the changes from upstream to origin master | |
git push origin master --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment