之前右键的时候,菜单上没有 git bash相关命令,卸载重装,Git Bash Here的选项,勾选
git branch #查看本地所有分支,并且会标注目前是在哪个分支
git checkout -b <本地分支名> origin/<远程分支名> #拉取远程分支并创建本地分支,切换到新分支
git branch -d <本地分支名> #删除本地分支
git branch -D <本地分支名> #强制删除本地分支
git branch --set-upstream-to=origin/<远程分支名> #将目前所在的分支与指定的远程分支连接起来
git branch --unset-upstream <本地分支名> #取消本地分支与远程分支的对应关系
git config user.name #查看用户名
git config user.email #查看邮箱