PHP学习_PHP技术_PHP网站建设_PHP程序员专注于PHP技术研究及学习

文档标签: git

设置git push和pull的默认分支.

例如要把push和pull的默认分支设置为develop,那么:git branch --set-upstream-to=origin/develop develop...
此文被围观204次  分类: 编程开发 标签:  ··

git 查看远程分支、本地分支、创建分支、把分支推到远程repository、删除本地分支.

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...
此文被围观352次  分类: 编程开发 标签:  ···

error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference refs/remotes/origin.

rm -rf .git/refs/remotes/originrm .git/refs/remotes/origin/master~/sandbox/20/buddy$ git fetch --prune...
此文被围观737次  分类: 服务器 标签:  ·

本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2017adophper.com All Rights Reserved.