git常用命令整理

## 忽略https错误
git -c http.sslverify=false clone https://gitlab.aiqinqin.info/root/jiang.git

## 永久保存用户名和密码
git config --global credential.helper store

##配置全局用户信息
git config --global user.email "qq@qq.com"
git config --global user.name "root"

##git清除用户名密码
git config --system --unset credential.helper

##全局关闭git的ssl认证
git config --system http.sslverify false

##创建一个分支 release-1.0是你自己的版本号
git checkout -b release-1.0

##本地提交修改过的代码
git add .

##版本注释
git commit -m"First commit"

##提交分支
git push origin release-1.0

## 查看本地分支
git branch

## 查看所有分支情况
git branch -a

## 切换到新分支
git checkout branchName