1、查看所有分支
$ git branch -a
2、查看remote地址,远程分支,还有本地分支与之相对应关系等信息
git remote show origin
3、删除了那些远程仓库不存在的分支(1中看到的不存在的远程分支,通过该命令可以删除)
git remote prune origin
4、拉取远程分支到本地
$ git pull <远程主机名> <远程分支名>:<本地分支名>
如拉取远程的master分支到本地wy分支:
git pull origin master:wy