Answers for "pull from an upstream branch"

0

how to pull from original repository upstream

$ cd PROJECT_NAME
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
$ git fetch upstream

# then: (like "git pull" which is fetch + merge)
$ git merge upstream/master master

# or, better, replay your local work on top of the fetched branch
# like a "git pull --rebase"
$ git rebase upstream/master
Posted by: Guest on November-05-2021
0

git configure upstream for branch push and pull

# if remote_branch_name == local_branch_name
$ git push -u origin HEAD
Posted by: Guest on November-18-2020

Code answers related to "pull from an upstream branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language