常用git命令

获取远程某个分支:

1 git checkout --track origin/serverfix

serverfix为分支名称

2 git checkout -b local-branchname origin/remote_branchname  就可以将远程分支映射到本地命名为local-branchname  的一分支

原文地址:https://www.cnblogs.com/xqnq2007/p/7044767.html