[CentOS7]git 安装使用

# 安装git
yum install -y git
# 配置git
git config --global user.name "<名称>"
git config --global user.email "<邮箱>"
# 查看git配置
git config --list
# 添加远端仓库
git remote add origin http://10.0.0.1/LeoShi/vue_shop.git
git add .
git commit -m "Initial commit"
git push -u origin master

# 创建新的分支
git checkout -b login
# 检查所有分支
git branch
原文地址:https://www.cnblogs.com/leoshi/p/14798061.html