命令记不住

登陆

Git 安装管理

Git安装管理

1.在Linux上安装

1.安装Git

[root@git-node1 ~]# yum install git -y

2.配置git全局用户以及邮箱

[root@git-node1 ~]# git config --global user.name "x86cloud"  
[root@git-node1 ~]# git config --global user.email "[email protected]"  
[root@git-node1 ~]# git config --global color.ui true

3.检查git相关配置

[root@git-node1 ~]# git config --list
user.name=x86cloud
[email protected]
color.ui=true

2.在Windows上安装

在 Windows 上安装 Git,使用图形化 Git 安装工具,界面如图
Git工具下载地址https://gitforwindows.org/
g1

推荐阅读