PHP   发布时间:2022-04-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了window phpstorm和linux上如何安装github项目分支大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

《window PHPstorm和linux上如何安装github项目分支》要点:
本文介绍了window PHPstorm和linux上如何安装github项目分支,希望对您有用。如果有疑问,可以联系我们。

可以先在github上查看其分支:

window phpstorm和linux上如何安装github项目分支

如上,就是beta分支

可以在命令行中查看:

[root@iZuf67dbc4yqp padchat-PHP]# git branch -a

* master

  remotes/origin/HEAD -> origin/master

  remotes/origin/beta

  remotes/origin/master

或者:

[root@iZuf67dbc4yqp padchat-PHP]# git branch -r

  origin/HEAD -> origin/master

  origin/beta

  origin/master

查看所有分支:  

# 认有了dev和master分支,所以会看到如下三个分支  

# master[本地主分支] origin/master[远程主分支] origin/dev[远程开发分支]  

# 新克隆下来的代码认master和origin/master是关联的,也就是他们的代码保持同步  

取分支:

# git checkout -b origin/beta

有时你修改了本地文件,在拉取分支时,出现提示

[root@iZuf67dbc4yqp padchat-PHP]# git checkout -b origin/beta

error: You have local changes to 'app/Bootstrap.PHP'; cAnnot switch branches.  

提示说 本地文件app/Bootstrap.PHP有改动 不能进行切换分支

备份并删除提示文件 ,用git checkout 进行恢复文件,再切换分支 对文件进行修改  

在window上,可以用PHPstorm拉取分

PHPstorm的菜单“VCS--git---pull”中拉取即可。

window phpstorm和linux上如何安装github项目分支

window phpstorm和linux上如何安装github项目分支

大佬总结

以上是大佬教程为你收集整理的window phpstorm和linux上如何安装github项目分支全部内容,希望文章能够帮你解决window phpstorm和linux上如何安装github项目分支所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。