git add  -->添加进暂存区
git commit  -->提交到本地历史仓库
git log  -->查看日志
git reflog  --> 查看日志
git reset --hard   -->git历史版本切换
git branch  -->查看分支列表
git branch  xxx  -->创建新分支
git checkout  -->切换分支
git merge 分支名  -->合并分支
git branch -d 分支名  -->删除分支
git config user.name  -->查看git账户
git config user.email  -->查看git邮箱
git config --global user.name "账户名"
git config --global user.email "邮箱"
cd ~/.ssh  -->查看是否生成过ssh公钥
ssh-keygen -t rsa -C "邮箱"  -->生成ssh公钥
cat ~/.ssh/id_rsa.pub  -->查看生成公钥
ssh  -T git@github.com  -->测试公钥连通性
git remote add 自定义远程仓库名称 远程仓库URL  --> 重命名远程仓库名称
git push -u 自定义远程仓库名称 分支名    -->推送到远程仓库
git clone   远程仓库地址   -->克隆远程仓库
git pull 远程仓库名 分支名   --> 拉取远程仓库