Git Fork Configuration And Sync

less than 1 minute read

check

git remote -v
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
> origin  https://github.com/YOUR_USERNAME/YOUR_FORK.git (push)

add remote upstream

If your fork don’t have upstream repository, you should add it:

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

Then recheck.

git remote -v

merge upstream to your fork

git fetch upstream
git merge upstream/master

update your fork

git push origin master

Tags:

Categories: ,

Updated: