当前位置:网站首页>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
边栏推荐
- SQL修复重复数据
- 与张小姐的春夏秋冬(4)
- Thinkphp6管道模式Pipeline使用
- Crypto giants all in metauniverse, and platofarm may break through
- ThinkPHP6 输出二维码图片格式 解决与 Debug 的冲突
- CMD window under Windows connects to MySQL and operates the table
- PHP如何生成二维码?
- Fantom (FTM) surged 45% before the FOMC meeting
- Some opportunities for young people in rural brand building
- 马斯克推崇的柏拉图式元宇宙,PlatoFarm早已验证出答案
猜你喜欢
QT setting background image method
Dao race track is booming. What are the advantages of m-dao?
Research and implementation of flash loan DAPP
Super simple integration of HMS ml kit to realize parent control
Sliding switch of tab of uniapp component
“山东大学移动互联网开发技术教学网站建设”项目实训日志五
Performance comparison | FASS iSCSI vs nvme/tcp
熊市下PLATO如何通过Elephant Swap,获得溢价收益?
Laravel service container (inheritance and events)
深度学习的趣味app简单优化(适合新手)
随机推荐
win10+opencv3.2+vs2015配置
Record the SQL injection vulnerability of XX company
Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round
NIFI 改UTC时间为CST时间
JDBC连接数据库详细步骤
Extreme deflation and perpetual motion machine model will promote the outbreak of platofarm
7 月 28 日 ENS/USD 价值预测:ENS 吸引巨额利润
How to make interesting apps for deep learning with zero code (suitable for novices)
XDFS&中国日报社在线协同编辑平台典型案例
Plato farm is expected to further expand its ecosystem through elephant swap
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
Get the number of daffodils
July 28 ens/usd Value Forecast: ENS attracts huge profits
Training log III of "Shandong University mobile Internet development technology teaching website construction" project
超简单集成HMS ML Kit 实现parental control
Sports health is deeply rooted in the hearts of the people, and move protocol leads quality life
与多家机构战略合作,背后彰显PlatoFarm元宇宙龙头的实力
中海油集团,桌面云&网盘存储系统应用案例
第五空间智能安全⼤赛真题----------PNG图⽚转换器
深度学习的趣味app简单优化(适合新手)