简体   繁体   English

这些基于git的代码部署方法背后的原因是什么?

[英]What's the reasoning behind these approaches to git-based code deployment?

So, I enjoy using git as a tool for deploying web application code to the production space from my development space, but I'm admittedly new to it and not especially knowledgeable. 因此,我喜欢将git用作从开发空间将Web应用程序代码部署到生产空间的工具,但是我承认它是新手,知识不是特别丰富。 I was wondering if anyone could clarify for me why it is that I see people explicitly advocating these two opposed models of git-based deployment? 我想知道是否有人可以为我澄清,为什么我看到人们明确主张这两种基于git的部署的对立模型?

  1. Create the master repository in your development environment and branch to production. 在开发环境中创建主存储库,然后分支到生产环境。
  2. Create the master repository in your production environment and branch to development. 在生产环境中创建主存储库,然后进行开发。

As a solo developer (or as a newbie), I'm not seeing what the real, functional difference between the two is. 作为一个单独的开发人员(或作为新手),我看不出两者之间真正的功能差异是什么。 What are the advantages and disadvantages of either approach? 两种方法的优缺点是什么?

我建议您检查一下Source Control Done Right ,它没有专门讨论git的概念(更基本的意义),但是它确实解释了按异常分支和按发行分支的两种模式-这些工作流程几乎都希望完成。

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

相关问题 基于Git的网站部署工作流程 - Git-based website deployment workflow 在基于git的CMS中,如何唯一标识git存储库中的文件? - In a git-based CMS, how to uniquely identify files in git repository? Android Studio - 基于 Git 的多平台项目的 CRLF 与 LF - Android Studio - CRLF vs LF for a Git-based multiplatform project Ruby On Rails — 安装基于 git 的 gem 'not ckecked' 问题 - Ruby On Rails — installing git-based gems 'not ckecked out' problem Eclipse无法识别基于git的项目 - Eclipse doesn't recognise git-based project 企业中基于Git的源代码控制:建议的工具和实践? - Git-Based Source Control in the Enterprise: Suggested Tools and Practices? 如何在autoconf管理的项目中插入基于Git的版本? - How to insert Git-based version in autoconf-managed project? 基于组合中的git在jenkins中自动部署代码 - auto deployment of code in jenkins based on git in assembla 使用基于Git的Visual Studio Online构建解决方案失败,并带有项目引用 - Building solution using Git-based Visual Studio Online fails with project references bup(基于git的图像备份)如何计算存储对象的哈希 - How does bup (git-based image backup) computes hashes of stored objects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM