search
HomeBackend DevelopmentPHP Tutorial多人同时开发一个程序该怎么办?

有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
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
PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

See all articles

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

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.