php 代码版本管理
php框架yii2,开发人员5个左右,想做个代码版本管理,方便提交和维护,但不知该如何整,如果有好的解决方案,希望能有详细的步骤,如线上还是局域网,是svn或git,服务器要怎样的,类似但不限与此,希望能得到帮助
回复内容:
php框架yii2,开发人员5个左右,想做个代码版本管理,方便提交和维护,但不知该如何整,如果有好的解决方案,希望能有详细的步骤,如线上还是局域网,是svn或git,服务器要怎样的,类似但不限与此,希望能得到帮助
有2种解决方案:
1、自己搭建服务
可以选择 gogs 或者 gitlab 功能够用,或者选择商业的 Bitbucket 10个用户买个授权10美元
2、使用git服务
如: github,国内的gitcafe 等
我这边在用户gitlab,目前上万的用户和仓库用起来很稳定
1.到底选哪种版本管理工具 git or svn?
我个人觉得,虽然你们现在团队比较小,可能svn就足以,但还是及其墙裂地推荐用git,原因很简单:潮流。而且这也是一种趋势。
我现在默认你已经选了git。
2.到底选择已有的git版本服务器还是自己搭一个git服务器
如果选择现有的产品,github就可以(只不过私有仓库是要收费的)而且有些接触过的公司,就是用付费的github,另外推荐bitbucket(团队5人以内是可以建免费仓库的)。
如果你还是担心代码安全,要自己搭服务器的话,那网上就太多方法了。
可以考虑使用gogs,配置局域网或者外网访问都可以,部署方便。我们公司现在就是用这个。
如果不是一定要自己部署服务器的话,我相信你可以选择coding.net来作为进行代码托管,项目不是很大是完全免费的。基于评论区 @liu_jing 的评论, 当然你可以选择其他的代码托管厂商,比如GitHub这些(主要是因为收费,如果能接受的话可以选择)
如果你需要部署自己的Git的话可以选gogs,他是一款go语言编写的开源软件,值得你尝试。
个人推荐第一种,我现在就是在他上面托管这将近20多个团队项目
http://git.oschina.net/ 这个不是广告贴,至少在国内还是比较积极改进的git系统,还算稳定,绝对不是出于商业目的,不过如果是商业项目,是需要考虑其他的有权限控制的工具了
用git吧 分布式 方便代码管理
我觉得自己的项目代码还是放在自己的局域网比较好了,在公司找台机器搞个gitlab
我在博客写过一篇文章 : 用GitLab搭建自己的私有GitHub
我在用开源中国,感觉还可以吧,私人项目是免费的
小项目的话线上比较好,人员流动也灵活些,代码安全的话自己控制吧。
git其实我觉得Coding不错啊!
国内服务器,速度又快。也不用自己搭,好像还可以直接部署演示的。虽然我没用过。。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

If you are an experienced PHP developer, you might have the feeling that you’ve been there and done that already.You have developed a significant number of applications, debugged millions of lines of code, and tweaked a bunch of scripts to achieve op

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.
