git branch --set-upstream-to=origin/master master
git pull默认摘取远程分支设置...
操作前请保存文件git仓库回退命令:git reset --hard 28dcc3b57ef2a0c01ac2f84f01b308f91ea46f3agit push -f origin develop参考地址:https://blog.csdn.net/jackyzheng/article/details/76672921 ...
例如要把push和pull的默认分支设置为develop,那么:git branch --set-upstream-to=origin/develop develop...
1 查看远程分支$ git branch -a* br-2.1.2.2 master remotes/origin/HEAD -> origin/master remotes/origin/br-2.1.2.1 remotes/origin/br-2.1.2.2 remotes/origin/br-2.1.3 remotes/origin/master2 查看本地分支shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2)$ git branch* br-2.1.2.2 master3 创建分支shuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2)$ git branch testshuohailhl@SHUOHAILHL-PC /f/ggg/jingwei (br-2.1.2.2)$ git branch* br-2.1.2.2 master&nb...
rm -rf .git/refs/remotes/originrm .git/refs/remotes/origin/master~/sandbox/20/buddy$ git fetch --prune...