让你fork下来的项目与源项目保持同步
2016-04-05 15:52
525 查看
原文在此, 建议阅读, 我把关键步骤抽出来了, 方便概览
(也就是add remote upstream, fetch upstream, rebase, 再push)
Step 1: Forking a repo
Step 2: Making changes and submitting Pull Requests
Step 3: Keeping the forked repo synced with the main repo
(也就是add remote upstream, fetch upstream, rebase, 再push)
Step 1: Forking a repo
git clone https://github.com/nitin-test/blog-example-fork.git git remote add upstream https://github.com/nitstorm/blog-example.git git remote git remote show origin git remote show upstream
Step 2: Making changes and submitting Pull Requests
git checkout -b word-addition git commit -am "Adds the word memory" git push origin word-addition # 网页端发起merge到master
Step 3: Keeping the forked repo synced with the main repo
# 确保你是在master分支 git checkout master git fetch upstream git rebase upstream/master git push origin master
相关文章推荐
- 观察者模式
- Android客户端性能优化
- SAS学习笔记:读取混合格式的数据
- Leetcode 78. Subsets
- Nginx配置文件nginx.conf中文详解(总结)
- javascript异常处理机制
- js遍历jsonTree
- 管理照相机-录视频(摘自Android官方培训课程中文版(v0.9.5))
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'
- AspectJ(面向切面)
- 重建控制文件
- 关于使用容联demo出现java.lang.NoClassDefFoundError
- 简单数据转化
- Opencv读取多光谱(高光谱)数据(1)
- .Net中的序列化和反序列化详解
- java的优点,java与c++的区别
- 利用DexClassLoader动态加载dex文件
- Wifidog的协议梳理
- 【MyBatis】实现批量删除,比较通用
- Java NIO系列教程(十) Java NIO DatagramChannel