1:查看远程仓库
$ git remote -v
2:删除远程仓库
$ git remote remove origin
3:添加远程仓库
$ git remote add origin XXXXXX.git
4:克隆远程仓库
$ git clone https://XXXXXXXX
5:初始化仓库
$ git init
6:查看用户名和邮箱
$ git config user.name
$ git config user.email
7:修改用户名和邮箱
$ git config --global user.name "username"
$ git config --global user.email "email"
8:拉取
$ git pull
9:查看远程分支
$ git branch -a
10:查看本地分支
$ git branch
11:切换分支
$ git checkout master
12:删除分支
$ git branch -d (branchname)
13:添加到暂存区
$ git add .
14:提交到本地的版本库
$ git commit -m "新版本"
15:提交
$ git push