git分支查看与切换
查看所有分支:
git branch -a
(结果列表前面有“*”号的为当前分支)
查看当前分支:
git branch
切换分支:
git checkout 分支名
git clone 指定某个分支:
git clone -b 分支名 url地址
git全局配置用户名和邮箱:
git config --global user.name "your user name"
git config --global user.email "your user email"
git查看所有配置信息
git config --list
网友评论