切换分支

git checkout -b dev origin/dev
原文地址:https://www.cnblogs.com/xiaobiaomei/p/9001151.html