git分支查看及切换

1. 查看远程分支

git branch -a

带有“*”号的表示当前分支
2. 查看本地分支

git branch

3. 切换分支命令

git checkout -b v1 origin/v1
# 切换回master
git checkout master

4. 参考文章
https://blog.csdn.net/u014540717/article/details/54314126

猜你喜欢

转载自blog.csdn.net/qq_26710805/article/details/80674006