1.git --version
获取git版本号命令
2.git config user.email
用于设置当前库的邮箱
3.git checkout (branchname)
切换分支命令
4.git checkout -b (branchname)
创建新分支并立即切换到该分支下,在该分支中操作
5. git merge new-runoob
将当前分支与分支“new-runoob”合并
6.git branch -d (branchname)
删除分支命令
7.git remote add [shortname] [url]
添加远程版本库命令
如:git remote add origin https://abc.xyz/d/e.git 是将远程仓库“https://abc.xyz/d/e.git”添加为“origin”的命令
8.git fetch
命令将提交、文件和引用从远程存储库下载到本地存储库中
9.git pull
是git fetch 和 git mergr FETCH_HEAD的简写。