text Git fork更新

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Git fork更新相关的知识,希望对你有一定的参考价值。


git remote add upstream https://github.com/whoever/whatever.git

# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:

git rebase upstream/master

以上是关于text Git fork更新的主要内容,如果未能解决你的问题,请参考以下文章

github Git-fork-别人的项目后更新代码的方法

怎么同步fork原git项目

怎么同步fork原git项目

《Git与Github使用笔记》第13章 同步更新Github上Fork的项目

Git Fork别人的代码后如同步别人的代码

GitLab本地远程更新已经fork的项目