当前位置:网站首页>The Gerrit local code is associated to the remote warehouse
The Gerrit local code is associated to the remote warehouse
2022-07-28 23:09:00 【ZZ White Dragon】
step1
1. In the git The following instructions are used in the directory of , Create a local warehouse
Not as good as :MyApplication
perform :
git init

step2 Associated remote warehouse
git remote add origin remote-url
remote-url Replace with the remote warehouse address
step3 Add ignore file
This step can be used ide operation , intuitive
step4 View the files that need to be tracked
git status
step5 Add files to be tracked
git add .
6. Submit
git commit -m"IssueID=ID Submission description "
ID It's demand id, Or modify bug Of bugid
7 Locally generated ReadMe file
git pull --rebase origin master
If not locally readme file perform git push -u origin master Will report a mistake
8 push
Yes, you can allow irrelevant history submissions , Force a merger
git pull origin master --allow-unrelated-histories
9.hook
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
xx It is the present. git user name
ip yes hook Address
10. Submit
git commit --amend
step 8 Direct to 11 Will report a mistake , Prompt to add change-id, Follow the prompts to perform the steps 9,10
11 Pushed to the review Area
gerrit Users are not allowed to directly push, Need to submit to review Area
git push origin master:refs/for/master
12 review after
git pull origin master
边栏推荐
- Improvement 11 of yolov5: replace backbone network C3 with lightweight network mobilenetv3
- Written questions and answers of software test interview (software test question bank)
- Leetcode exercise 3 - palindromes
- Yolov5 improvement 15: network lightweight method deep separable convolution
- MySQL foundation - advanced functions
- leetcode101. 对称二叉树
- 2020年国内十大IC设计企业曝光!这五大产业挑战仍有待突破!
- Recurrent neural network (RNN)
- [MySQL series] addition, deletion, modification and query of MySQL tables (Advanced)
- Yolov5 improvement 12: replace backbone network C3 with lightweight network shufflenetv2
猜你喜欢

DIP-VBTV: Color Image Restoration Model Combining Deep Image Prior and Vector Bundle Total Variation
![[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code](/img/e5/878bf5908856c80d6e07b03ba59da5.png)
[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code

Hands on Teaching of servlet use (1)

【MySQL系列】 MySQL表的增删改查(进阶)

Thesis reading (0) - alexnet of classification

xshell7,xftp7个人免费版官方下载,无需破解,免激活,下载即可使用

The industry's first cloud native security detection dual model! Safety dog heavyweight report appears at the digital China Construction Summit

MySQL数据库的基本概念以及MySQL8.0版本的部署(一)

Thesis reading (2) - vggnet of classification

There are four ways for Nacos to configure hot updates and multiple ways to read project configuration files, @value, @refreshscope, @nacosconfigurationproperties
随机推荐
Bullet frame mask layer "recommended collection"
No code development platform management background tutorial
Xshell7, xftp7 personal free version official download, no need to crack, no activation, download and use
希捷发布全新RISC-V架构处理器:机械硬盘相关性能暴涨3倍
Shell script foundation - shell operation principle + variable and array definitions
业界首创云原生安全检测双模型!安全狗重磅报告亮相数字中国建设峰会
Leetcode101. Symmetric binary tree
高等数学解题常用公式笔记总结
WebApplicationType#deduceFromClasspath
Summary of core functions of software testing tool Fiddler postman JMeter charlse
The US FCC provided us $1.6 billion to support domestic operators to remove Huawei and ZTE equipment
【数据库】
记录一下关于三角函数交换积分次序的一道题
Cnpm installation steps
Introduction to address book export without code development platform
(重要)初识C语言 -- 函数
Invest 50billion yuan! SMIC capital was officially registered!
Invest 145billion euros! EU 17 countries announce joint development of semiconductor technology
Improvement 11 of yolov5: replace backbone network C3 with lightweight network mobilenetv3
歌尔股份与上海泰矽微达成长期合作协议!专用SoC共促TWS耳机发展