1.下载git,使用命令:
yum install git
2.配置git:
1 git config --global user.name "Your Name"
2 git config --global user.email "email@example.com"
3 #查看配置是否生效
4 git config --list
3.创建本地仓库:
1 #创建目录
2 mkdir gitspace
3 cd gitspace
4 git init
4.克隆代码
1.下载git,使用命令:
yum install git
2.配置git:
1 git config --global user.name "Your Name"
2 git config --global user.email "email@example.com"
3 #查看配置是否生效
4 git config --list
3.创建本地仓库:
1 #创建目录
2 mkdir gitspace
3 cd gitspace
4 git init
4.克隆代码