是否可以使用 git 查看网站克隆的分支?
我有一个网站的工作版本,它是位于我的 /home/dmaxwell/public_html 文件夹中的 DocumentRoot 的克隆。我想从我的工作克隆中分支出来并尝试一些不同的事情,但是,当我检查以查看任何进度时,主分支是浏览器显示的版本。有没有办法让浏览器显示实验分支,或者我只能使用主分支?
I have a working version of a website that is a clone of the DocumentRoot located in my /home/dmaxwell/public_html folder. I would like to branch off of my working clone and try some different things, however, when I go to check to see any progress the master branch is the version that the browser shows. Is there a way to get the browser to show the experimental branch or am I limited to only using the master branch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的网站将显示签出的代码中存在的所有内容。如果你想查看分支,请查看:
Your website will show whatever is present in the code checked out. If you want to view the branch, check it out:
您可以使用以下命令在分支之间切换来回和第四个
you can switch back and fourth between branches using
您可以将您的分支“克隆”到同一 Web 服务器或不同 Web 服务器下的不同位置,并在那里查看它。这与 git 无关,更像是您的部署/基础设施。
You can "clone" your branch to a different location under the same web-server or under different web-server and see it there. This is not really git related more like what your deployment/infrastructure is.