Skip to content

Instantly share code, notes, and snippets.

@SvS30
Created December 23, 2021 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SvS30/28ad2649553a68e66d1237ba729ec59d to your computer and use it in GitHub Desktop.
Save SvS30/28ad2649553a68e66d1237ba729ec59d to your computer and use it in GitHub Desktop.
Steps for Upstream branch add
# 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