github在fork之后如何同原仓库同步 #55
guodongxiaren
started this conversation in
教程
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
github在fork之后,你的repo如何同原repo同步呢?
主要就是给你的repo再添加一个remote,指向原repo。接着从这个remote更新就行了。注意如果和本地repo有冲突可能产生merge。你也可以给本地开个新branch跟进。
先查看当前remote
添加新remote
remote名任意,这里我叫root吧。指向原repo
再看看当前remote:
从原repo拉更新
本地切换到master
如果你已经是master忽略这步。
合并原repo的master
推送更新到自己repo的云端
Beta Was this translation helpful? Give feedback.
All reactions