当前位置:网站首页>Synchronous development with open source projects & codereview & pull request & Fork how to pull the original warehouse
Synchronous development with open source projects & codereview & pull request & Fork how to pull the original warehouse
2022-07-29 05:51:00 【Liaoshengping】
List of articles
scene 1
In relatively large team development , In order to ensure code quality and technical managers can understand the logic of the whole code , The code needs to have CodeReview link .
scene 2
If open source projects are used as the basis for development ,fork After a period of time, the source code has been updated or modified , Not synchronizing is a loss for the team .
scene 3
Scene 2
If open source projects are found in development bug, Or new functions are added , It can also be done through Pull Request Make your own contribution to the open source project .
Method
fork The main code base ( Open source library ), And put yourself fork The warehouse of clone To local
1. View the currently associated remote warehouse , This warehouse is just fork Of
E:\linuxdir\php\xxx>git remote -v
origin [email protected].com:liaosp/xxx.git (fetch)
origin [email protected].com:liaosp/xxx.git (push)
2. Associated with primary warehouse ( Open source library ) Add an upstream warehouse (upstream ).
git remote add upstream [email protected].com:xxx/xxx.git
View the remote library at this time :
E:\linuxdir\php\dingdongShop>git remote -v
origin [email protected].com:liaosp/xxx.git (fetch)
origin [email protected].com:liaosp/xxx.git (push)
upstream [email protected].com:xxx/xxx.git (fetch)
upstream [email protected].com:xxx/xxx.git (push)
Synchronize master warehouse
git pull upstream master
We can't merge
git pull upstream master --allow-unrelated-histories
E:\linuxdir\php\dingdongShop>git pull upstream master
remote: Enumerating objects: 30, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 21 (delta 16), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), 4.79 KiB | 75.00 KiB/s, done.
From gitee.com:ZhongBangKeJi/CRMEB
* branch master -> FETCH_HEAD
ec68235a..a52078d2 master -> upstream/master
Updating ec68235a..a52078d2
Fast-forward
crmeb/app/services/coupon/StoreCouponUserServices.php | 2 +-
crmeb/app/services/product/product/StoreProductServices.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Perform consolidation regularly , Ensure the code submitted by other colleagues in the main warehouse , It can also be developed synchronously with open source projects .
codeReview
stay git Control panel (github/gitlab) There is one PullRequest The options can be submitted by yourself commit Merge to main warehouse
边栏推荐
- 华为2020校招笔试编程题 看这篇就够了(上)
- The bear market is slow, and bit.store provides stable stacking products to help you get through the bull and bear market
- Research and implementation of flash loan DAPP
- 量化开发必掌握的30个知识点【什么是Level-2数据】
- centos7 静默安装oracle
- DAY5:PHP 简单语法与使用
- “山东大学移动互联网开发技术教学网站建设”项目实训日志三
- 焕然一新,swagger UI 主题更改
- 熊市下PLATO如何通过Elephant Swap,获得溢价收益?
- 第五空间智能安全⼤赛真题----------PNG图⽚转换器
猜你喜欢
DAY4:SQL Sever 简单使用
CMD window under Windows connects to MySQL and operates the table
新手入门:手把手从PHP环境到ThinkPHP6框架下载
Move protocol global health declaration, carry out the health campaign to the end
DAY4:MySQL 数据库的建立及简单实用
Huawei 2020 school recruitment written test programming questions read this article is enough (Part 1)
Strategic cooperation with many institutions shows the strength of the leading company of platofarm yuancosmos
Okaleido Tiger 7.27日登录Binance NFT,首轮已获不俗成绩
Crypto giants all in metauniverse, and platofarm may break through
MOVE PROTOCOL全球健康宣言,将健康运动进行到底
随机推荐
Laravel service container (inheritance and events)
“山东大学移动互联网开发技术教学网站建设”项目实训日志一
Bare metal cloud FASS high performance elastic block storage solution
Masscan tutorial
Performance comparison | FASS iSCSI vs nvme/tcp
Fvuln automated web vulnerability detection tool
Machine learning makes character recognition easier: kotlin+mvvm+ Huawei ml Kit
Record the SQL injection vulnerability of XX company
量化开发必掌握的30个知识点【什么是Level-2数据】
rsync+inotyfy实现数据单项监控实时同步
以‘智’提‘质|金融影像平台解决方案
Fantom (FTM) 在 FOMC会议之前飙升 45%
Super simple integration HMS ml kit face detection to achieve cute stickers
量化开发必掌握的30个知识点【什么是分笔逐笔数据】?
DAY4:MySQL 数据库的建立及简单实用
Sports health is deeply rooted in the hearts of the people, and move protocol leads quality life
Detailed steps of JDBC connection to database
Get the number of daffodils
The openatom openharmony sub forum was successfully held, and ecological and industrial development entered a new journey
大部分PHP程序员,都搞不懂如何安全代码部署