banner
Tenifs

Tenifs

雄关漫道真如铁,而今迈步从头越。
github
zhihu
email

How to sync branches added by others in a Forked project

After forking someone else's project, cloning it to your local machine, assuming the original repository author has added a new v5-dev branch, how should we synchronize this new branch?

Pull the new upstream branch into the local repository

git remote add upstream https://github.com/dromara/hutool.git

Fetch the new upstream branch

git fetch upstream

image

Create a new branch locally named v5-dev and switch to that branch

git checkout -b v5-dev upstream/v5-dev

Push the local v5-dev branch to your forked remote repository

git push origin v5-dev

image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.