doujiu8479 2013-12-22 13:22
浏览 36
已采纳

使用cvs在webapp上作为一个小组工作

Me and my friend are in different countries have been developing a LAMP web app for several weeks. All these times we have been sharing source code over ftp. In this way php files become messy. I have heard about CVS, and have been reading about it. But I still cannot figure out how it works exactly.

How does the CVS could help me in this matter ?

I would be much appreciated for someone who point me in the right direction.

  • 写回答

2条回答 默认 最新

  • duanlu0075 2013-12-22 14:05
    关注

    Ok here comes a very simple explanation of VCS. After using it for a while you'll laugh at the explanation but for now I guess this should help you.

    What are the problems of your current ftp file sharing?

    1. If 2 people upload the same file one of the files will get overwritten
    2. After uploading it you'll only see who changed the file (the last time) but not where it got changed
    3. You can't provide information about the changes (despite putting comments in the files itself)
    4. You can't go back in time, once uploaded old files are lost

    With version control you can solve these problems:

    1. Files get either merged into one new file, or get overwritten but the old file will still be stored to roll back if needed
    2. You can see who made which changes when
    3. You can provide comments when you "upload" your files about what got changed (without storing these comments inside files)
    4. You can always go back in time and restore old "uploads"/changes
    5. You can also create small side projects by branching. This basically let's you split your project in smaller pieces and work on them separately.

    So at the beginning of your work you usually get your local sources up-to-date by getting all the changes that got made. Then you do your work and afterwards you update the online version with your changes so that other developers can pull these changes and continue to work on them or integrate these changes into their current changes.

    How to implement this sorcery? You could google for "how to implement git" or "how to implement svn" but I would recommend you to use an online service as a beginner. Here is a list of services: https://git.wiki.kernel.org/index.php/GitHosting

    My personal preference for closed source projects with a low number of developers is https://bitbucket.org/. You get a small wiki page and bug tracking tool provided with some of the services. If you want to use bitbucket, here is the very easy to understand documentation: https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+101

    Important to know: Soon you'll learn that you don't upload files as I've written multiple times but rather change lines of code. You also don't upload them you "commit" them.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题