简体   繁体   English

WordPress Live / Dev网站的建议Git工作流程

[英]Suggested Git workflow for a WordPress Live / Dev website

I just wanted to here some examples about how you guys go about VC'ing WordPress websites, or any website for that matter. 我只是想在这里举例说明你们如何使用VC网站或WordPress网站。

Currently my workflow is: 目前,我的工作流程是:

example.com - html/live - branch/master example.com - html / live-分支/主站

dev.example.com - html/dev - branch/dev dev.example.com - html / dev-分支/ dev

Make changes / editions to branch/dev and, merge them with branch/master once complete and ready to go. 对分支/开发进行更改/版本,并在完成后将其与分支/主版本合并。 Then pull them on the server side via command line. 然后通过命令行将它们拉到服务器端。

Seems like this isn't a question... more like a suggestion. 似乎这不是问题,更像是一个建议。

This is also quite a common workflow, making changes to a dev branch then merging them with master to push to a live server. 这也是非常常见的工作流程,先对dev分支进行更改,然后将其与master合并以推送到实时服务器。

You can follow this suggestion 你可以按照这个建议

在此处输入图片说明

(Source: http://nvie.com/posts/a-successful-git-branching-model/ ) (来源: http : //nvie.com/posts/a-successful-git-branching-model/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM