-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
同步你的 Github fork #48
Labels
Comments
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
前言
选择拥抱开源,无疑参与
github
的开源项目是最好的选择,先从同步 fork 仓库开始做起!一、确认本地 fork 仓库版本是否落后于原仓库
1. 查看 github fork 仓库后的
commit
数量及提交日志本地
clone
自己仓库 后的commit log
日志,与 gihub 上一致2. 查看原仓库的相关信息,比较
下一步计划,准备开始同步!
二、 同步
1. 查看本地仓库设置的远端仓库,是否有连接上游原始远端仓库
如果未连接上游仓库,添加远程仓库的变量地址
2. fetch,取回原仓库的更新
3. 将 fetch 后的更新内容合并至主分支
所取回的更新,在本地主机上要用"远程主机名/分支名"的形式读取。比如
upsteream
主机的master
,就要用upsteream/master
读取。此时会发现本地 master 分支的
commit
日志已经与原仓库的日志保持一致4.更新,推送至远端 master 分支
commit
数量与 最新日志与原仓库一致5. 同步远程的 tag
同步 tag
参考
The text was updated successfully, but these errors were encountered: