当前位置:网站首页>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
边栏推荐
- win10+opencv3.2+vs2015配置
- Crypto giants all in metauniverse, and platofarm may break through
- Huawei 2020 school recruitment written test programming questions read this article is enough (Part 1)
- 钉钉告警脚本
- 新手入门:手把手从PHP环境到ThinkPHP6框架下载
- Under the bear market of encrypted assets, platofarm's strategy can still obtain stable income
- 超简单集成HMS ML Kit 人脸检测实现可爱贴纸
- 机器学习让文字识别更简单:Kotlin+MVVM+华为ML Kit
- 以‘智’提‘质|金融影像平台解决方案
- The completely decentralized programming mode does not need servers or IP, just like a aimless network extending everywhere
猜你喜欢

以‘智’提‘质|金融影像平台解决方案

Fantom (FTM) prices will soar by 20% in the next few days

CMD window under Windows connects to MySQL and operates the table

Laravel service container (Application of context binding)

运动健康深入人心,MOVE PROTOCOL引领品质生活

Reporting Services- Web Service

赓续新征程,共驭智存储

Shanzhai coin Shib has a US $548.6 million stake in eth whale's portfolio - traders should be on guard

Okaleido Tiger 7.27日登录Binance NFT,首轮已获不俗成绩

深度学习的趣味app简单优化(适合新手)
随机推荐
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
Seay source code audit system
Starfish OS: create a new paradigm of the meta universe with reality as the link
centos7 静默安装oracle
山寨币SHIB 在 ETH 鲸鱼的投资组合中拥有 5.486 亿美元的股份——交易者应提防……
Win10 compiles ffmpeg (including ffplay)
北京宝德&TaoCloud共建信创之路
QT layout management -- Part stretch principle and sizepolicy
Fvuln automated web vulnerability detection tool
xtrabackup 的使用
改哭了,终于解决了Cannot read properties of undefined (reading ‘parseComponent‘)
以‘智’提‘质|金融影像平台解决方案
与多家机构战略合作,背后彰显PlatoFarm元宇宙龙头的实力
DAY4:MySQL 数据库的建立及简单实用
Training log 7 of the project "construction of Shandong University mobile Internet development technology teaching website"
Fantom (FTM) 价格将在未来几天飙升 20%
数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
Under the bear market of encrypted assets, platofarm's strategy can still obtain stable income
iSCSI vs iSER vs NVMe-TCP vs NVMe-RDMA
DAY5:PHP 简单语法与使用