Shell/Bash: how to fetch upstream changes gitlab fork Example

By

Shell/Bash Example: This is the "how to fetch upstream changes gitlab fork" Example. compiled from many sources on the internet by SimpleTutorials.org

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



* Summary: This "how to fetch upstream changes gitlab fork" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others