Table of Contents
回复内容:
Home Backend Development PHP Tutorial 多人同时开发一个程序该怎么办?

多人同时开发一个程序该怎么办?

Jun 06, 2016 pm 08:34 PM
github php svn

有3个程序员同时开发一个PHP网站,该怎么更好的协同工作呢?
如果要配置SVN的话哪里有详细教程可以看,我对linux不怎么会,SVN的话我有这样的功能,某一个程序员上传文件至公司内部某台电脑(当做SVN服务器),window里用什么程序可以将本地代码和SVN服务器上代码进行对比,我记得看过一个软件,左边是本地代码,右边是SVN服务器代码,然后下拉,不一致的地方会标注出来。SVN服务器还要支持自动备份,有新程序上传后要出发hook什么的然后传到网络服务器上。哪里有这样的教程吗?跪谢。。。。
还听说过github for windows ,这个能实现上述差不多的功能吗?

回复内容:

有3个程序员同时开发一个PHP网站,该怎么更好的协同工作呢?
如果要配置SVN的话哪里有详细教程可以看,我对linux不怎么会,SVN的话我有这样的功能,某一个程序员上传文件至公司内部某台电脑(当做SVN服务器),window里用什么程序可以将本地代码和SVN服务器上代码进行对比,我记得看过一个软件,左边是本地代码,右边是SVN服务器代码,然后下拉,不一致的地方会标注出来。SVN服务器还要支持自动备份,有新程序上传后要出发hook什么的然后传到网络服务器上。哪里有这样的教程吗?跪谢。。。。
还听说过github for windows ,这个能实现上述差不多的功能吗?

使用版本管理工具Git
可以将代码同步到coding上,以coding作为git库。

你不知道有个东西叫git嘛Σ(  ̄□ ̄||)

svn,git。有些原理还是差不多的。
svn,首先你用你们项目在svn服务器上的url,checkout下一个项目。
然后可以对checkout(可以说下载吧)的项目做update(更新别人提交的文件)和commit(提交自己更改的文件)操作,值得注意的是,每当你commit的时候,需要你update一下以防覆盖别人书写的代码。
git的话其实差不多,现在都出了git for windows桌面版的东西了。
之前下载git之后,需要配置.ssh就是密匙,每当你提交的时候他需要确认你的身份,当你的电脑拥有这个密匙后,git就不需要你输入密码来验证你的身份了。
之后的操作都差不多。也是checkout,update,commit。
如果你需要开发一些测试性质的功能。可以去了解一下分支开发。其实也是很简单的。就是新建一个版本,相当于拷贝一份项目源码,在此基础上做新功能的开发。当你觉得OK了,就merge到老的代码中去,不过其中可能会产生很多的冲突。这个到时候可以再了解。

TortoiseSVN自带比较功能吧;
或者,你可以使用Beyond Compare 比较。

又发现Code Compare也很好用。

  1. 使用版本管理工具Git
  2. 开发环境用Vagrant
  3. 代码托管:Coding
  4. 写代码PHPstorm

Easy Enough

创建一个svn环境,然后在开发工具上安装svn插件就行了,不知题主的开发工具是否支持带这方面的插件

git如果没有个非常了解git的大牛当救火员,大家就等着被它坑死吧。git的设计是leaky abstraction的嘛

git一直想学,但是一直学不大会呢,只喜欢在github找开源的东东

git 我也就简单的使用pull,push,merge来同步代码,小心的在用

用svn挺简单的,
服务器端:
windows下有个VisualSVN Server Manager,百度一下有免费版的,免费版不可以查看服务日志,其他功能和收费版一样。当然也有破解版的,你可以试一下。
客户端:
可以用TortoiseSVN,挺好用的。

当然现在都说git流行,看哪个好用,自己选择啦

必须使用git呀,简单强大易上手~

git指南: http://blog.lxx1.com/category/coding/git

去大公司工作一段时间

Git git git git git git……………

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1253
24
PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP in Action: Real-World Examples and Applications PHP in Action: Real-World Examples and Applications Apr 14, 2025 am 12:19 AM

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

The Enduring Relevance of PHP: Is It Still Alive? The Enduring Relevance of PHP: Is It Still Alive? Apr 14, 2025 am 12:12 AM

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP and Python: Code Examples and Comparison PHP and Python: Code Examples and Comparison Apr 15, 2025 am 12:07 AM

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP's Purpose: Building Dynamic Websites PHP's Purpose: Building Dynamic Websites Apr 15, 2025 am 12:18 AM

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP: Handling Databases and Server-Side Logic PHP: Handling Databases and Server-Side Logic Apr 15, 2025 am 12:15 AM

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

Choosing Between PHP and Python: A Guide Choosing Between PHP and Python: A Guide Apr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

See all articles