![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
文章平均质量分 53
@TangXin
路漫漫其修远兮,吾将上下而求索。
展开
-
Gerrit触发Jenkins SonarQube扫描
记录Gerrit +2 操作之后,自动触发Jenkins工程执行,SonarQube工具对代码进行静态扫描,如果扫描成功,Gerrit自动+1,如果扫描失败,Gerrit自动-1原创 2022-06-09 14:23:37 · 1518 阅读 · 2 评论 -
Gerrit+2触发Jenkins任务
Gerrit+2触发Jenkins任务执行原创 2022-06-08 16:43:25 · 2891 阅读 · 6 评论 -
CentOS7详细搭建Gitlab服务
文章目录1.环境准备2.yum源配置3.安装Gitlab4.配置启动5.访问服务版本1.环境准备# 操作系统信息[root@gitlab ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core)[root@gitlab ~]# uname -r3.10.0-1127.el7.x86_64# 关闭防火墙[root@gitlab ~]# systemctl sto原创 2022-03-24 11:46:43 · 1540 阅读 · 0 评论 -
CentOS7详细搭建Gerrit服务
文章目录0.环境准备1.安装Git2.下载Gerrit3.安装Java3.1 旧JDK卸载3.2 安装指定JDK4.安装MySQL4.1 卸载Mariadb4.2 安装MySQL4.3 创建数据库5.初始化Gerrit6.使用HTTP认证配置6.1 nginx服务认证6.2 httpd服务认证服务版本Git1.8.3.1Gerrit3.5.1Java11.0.13MySQL5.7.270.环境准备# 关闭防火墙[roo原创 2022-03-23 20:25:37 · 7194 阅读 · 0 评论 -
CentOS7搭建Gerrit服务
文章目录1.环境准备2.下载Gerrit3.安装并初始化4.更新监听URL5.重启Gerrit6.访问Gerrit1.环境准备Linux(CentOS7.4)操作系统Java 11Git配置解决Gerrit中文编码支持# git utf-8配置git config --global core.quotepath falsegit config --global i18n.logoutputencoding utf8git config --global i18n.commitencoding原创 2022-03-23 10:33:05 · 377 阅读 · 0 评论 -
Git pull避免Merge branch
文章目录1.问题2.避免Merge branch1.问题在使用Git代码仓库管理项目代码时,使用git pull拉取远程代码后,git log查看,会发现本地分支指向:Merge branch “分支名称” of ssh “远端分支”,缺少 Change-Id: …由于缺少 change-id 此时如果修改本地代码,再提交到远端分支,就会报错;2.避免Merge branch# 方法1git config --global pull.rebase true# 方法2,在使用git pull拉原创 2022-01-14 09:43:27 · 2050 阅读 · 0 评论 -
CentOS7部署Gerrit服务
文章目录1.环境准备1.1 卸载旧JDK1.2 安装指定JDK1.3 关闭防火墙1.4 系统环境1.5 安装httpd服务1.6 关闭SeLinux2.初始化3.修改Gerrit配置文件4.修改http配置文件5.创建用户6.重启Gerrit服务7.重启httpd服务8.访问Gerrit组件版本包Gerrit3.4.2gerrit-3.4.2.warJDK11.0.13jdk-11.0.13_linux-x64_bin.tar.gz1.环境准备原创 2021-12-07 20:25:45 · 582 阅读 · 0 评论 -
Gerrit推送远程库后想要修改最后一次推送的内容
1.如果代码推送Gerrit仓库中,想要修改本次推送的内容,此时Gerrit仓库中的代码尚未合并到分支。2.打开 Git GUI 选择 “Amend Last Commit” 会弹出最后一次提交的信息。3.“Amended Commit Message” 中的内容不要修改。4.想要修改左侧代码文件,取消文件左侧的对号选中,点击对号。5.然后看到需要修改的代码文件,被显示在上半部分区域:Unstaged Changes 区域。6.此时可以在PyCharm等编辑器中修改该代码。7.修改完毕之后,在U原创 2021-11-21 11:58:37 · 787 阅读 · 0 评论 -
Gerrit推送代码失败
文章目录1.Gerrit推送失败2.原因分析3.执行git log查看4.回退异常之前的正常节点5.再次提交6.推送1.Gerrit推送失败在使用Gerrit 推送代码时,报错:$ git push origion HEAD:refs/for/master...remote: ERROR: missing Change-Id in commit message footer...2.原因分析在 Push 时存在提交没有 change_id 的记录,Gerrit 要求每次提交都要有 chan原创 2021-11-21 11:48:47 · 1315 阅读 · 0 评论 -
Unable to negotiate with 100.9.70.30 port 29418: no matching key exchange method found
1.问题在Linux上 clone Gerrit 代码时报错:Unable to negotiate with 100.9.70.30 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha12.解决vim ~/.ssh/configHost *.*.*.*KexAlgorithms +diffie-hellman-group1-sha1...原创 2021-09-08 16:28:50 · 2207 阅读 · 0 评论 -
git报错:Unable to create ‘D:/code_idea/code_java/XXProject/.git/index.lock‘: File exists.
问题:在本地IDEA中写代码,偶尔会遇到写的代码,无法提交到git仓库,报错如下:The following problems have occurred when adding the files: Unable to create 'D:/code_idea/code_java/XXProject/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an原创 2021-04-01 14:04:02 · 1888 阅读 · 0 评论 -
Win10环境下安装搭建TortoiseGit
为了方便使用git进行版本控制,所以安装git之后,再安装TortoiseGit。1.下载:https://tortoisegit.org/download/分别下载安装包和语言包2.安装程序包双击TortoiseGit-2.9.0.0-64bit.msi安装程序包一路回车,进行安装,出现以下页面,开始进行语言包的安装3.安装语言包双击TortoiseGit-Languag...原创 2019-11-05 15:07:29 · 597 阅读 · 0 评论 -
Win10将IDEA项目上传GitHub
win10本地安装git参考:https://blog.csdn.net/Happy_Sunshine_Boy/article/details/88736706设置git全局用户名和邮箱IDEA中设置Git,在File–>Setting->Version Control–>Git–>Path to Git executable选择git安装后的git.exe文件,然...原创 2019-03-22 15:47:41 · 384 阅读 · 1 评论 -
Win10环境下安装搭建git
从官网下载git:https://git-scm.com/downloads双击安装包,使用默认选项,一路回车,安装完毕。原创 2019-03-22 11:33:18 · 587 阅读 · 0 评论 -
Git的前世今生
Git简介产生历史       git是目前世界上最先进的分布式版本控制系统。      &原创 2018-12-10 22:42:14 · 486 阅读 · 0 评论 -
GitLab ssh配置
ssh方式是一种相对安全的方式,本次记录了自己在配置ssh链接时需要注意的地方。1.打开本地git bash使用如下命令生成ssh公钥和私钥对ssh-keygen -t rsa -C 'xxxxxx@xxx.com'然后回车执行(-C参数表示输入邮箱地址)2.检查是否显示有id_rsa.pub或者id_dsa.pub存在3.然后打开~/.ssh/id_rsa.pub文件,复制其...原创 2018-12-07 17:12:45 · 303 阅读 · 0 评论