(1)执行如下命令安装git
dnf install -y git
(2)查看git版本号,如下表示git安装成功
[root@openEuler-1 opt]# git --version
git version 2.33.0
[root@openEuler-1 opt]#
(3)配置全局git配置
如下,配置git用户名和邮箱以及编码和回车的设置
git config --global user.name “redrose2100”
git config --global user.email “hitredrose@163.com”
git config --global core.autocrlf false
git config --global gui.encoding utf-8
(4)如下查看git配置
[root@openEuler-1 opt]# git config --list
user.name=“redrose2100”
user.email=“hitredrose@163.com”
core.autocrlf=false
gui.encoding=utf-8
[root@openEuler-1 opt]#
(5)参考 CentOS7系统生成SSH公钥和私钥并为Gitee平台配置公钥 生成ssh公钥和私钥并将公钥上传至gitee代码仓库
(6)使用git clone 下载代码
git clone git@gitee.com:redrose2100-open-euler/mugen.git