Answers for "how to fetch upstream changes gitlab fork"

3

how to fetch upstream changes gitlab fork

# Git CLI

# Add a secondary remote called upstream.

git remote add upstream https://...

# Fetch the remote and then pull its changes into your local master branch.

git checkout master
git fetch upstream
git pull upstream master

# Last, push to your own remote origin to keep the forked repo in sync.

git push origin master
Posted by: Guest on July-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language