Centos7 安装 git

执行命令:
yum install -y git

当你想拉去代码时,输入你Git的账号密码

[root@worker odc]# git clone http://10.0.90.79/ODC/odc-node.git
Cloning into 'odc-node'...
Username for 'http://10.0.90.79': <你的git账号>
Password for 'http://1363311****@[email protected]': 
remote: Counting objects: 111, done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 111 (delta 21), reused 0 (delta 0)
Receiving objects: 100% (111/111), 43.36 KiB | 0 bytes/s, done.
Resolving deltas: 100% (21/21), done.
[root@worker odc]# 

你可能感兴趣的:(Centos7 安装 git)