源代码管理 - 如果,为什么,如何开始? [英] Source Control - If, Why, How to start?

查看:98
本文介绍了源代码管理 - 如果,为什么,如何开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:

使用源代码管理


所以,即使在这里对于版本控制来说,找到很好的回答我所有的问题。



1,我需要从版本控制开始吗?

$ b $如果您有任何要说或发布的链接,请在此处填写。 b
虽然大多数人都同意,即使是单个开发人员/程序员也应该从版本控制开始,没有人(或至少以可理解的形式)告诉

2.如何?

在我的本质中,我需要知道CVS,SVN,Tortoise,Git,GitHub以及它们之间有什么区别,但我很努力作为一名开发人员/程序员,我工作或学习过几乎所有的编程/标记语言,它们都是主要的(从pascal to java,从html到php :)),并使用了数十种编辑器,IDE和程序。当有人提到你甚至可以使用源代码控制来编写东西 - 为studens,年度报告,书籍做作业......你必须包括更多的编辑...

我现在不知道如何开始使用版本控制,如何将它合并到我的工作流程中,如果我需要服务器或什么。



感谢您的帮助发现什么是什么以及如何处理它:)



编辑:
从所有答案中(谢谢)感觉它只是像带历史记录的同步文件夹那样的感觉。 (以最明显的方式:))如果是,你能回答两个问题吗? (编号为4.和5.,所以它不会混淆在答案:))

4.如果我决定彻底改变我的程序结构(对于前者。在flex中,我决定使用两个as3类来代替MXML组件) - 它会不会使人混淆?



5.从其他问题来看,承诺? (发现这个问题已发布,并可能回答,然后再次丢失)然而,编辑2:
再次,更多的答案(谢谢)



6.我的问题4更像是如果我不小心(或不)因为例如它取决于其他被删除的文件,这是不是被取消删除,我将能够得到它? :D



7,我看到了一些我会看的方式。谢谢你的回答......但是,现在我很困惑我应该给谁好的答案,因为你们都非常有帮助:)

接下来,我会(对于任何寻找我的人来说,我一直在寻找和绊倒这个问题):

阅读此stackoverflows:$ / $> $ / $> b
$ b


观看视频:



http://excess.org/article/2008/07/ogre-git-tutorial/



在从手册中了解基本知识的同时,我将其缩小到颠覆(+ TortoiseSVN)和git(集线器),这是最常用和最受欢迎的。现在我唯一遇到的问题是,我的私人存储库已经支付了,所以我会选择不同的git解决方案,或者查看更多的Subversion。



非常感谢大家,我upvoted最有帮助的答案,也感谢您的意见。
Adam



编辑:试过Mercurial,但发现它对我的工作流程不正确...现在尝试颠覆,所以我标记了最老的颠覆答案:) p>

解决方案


  1. 是的,当然。 TortoiseSVN客户端。它具有出色的支持和优秀的工具,并且通常比Git更直接地配置和使用。

有一个很好的 Subversion手册免费提供。


Possible Duplicate:
Using Source Control

So, although even here on stackoverflow are literally dozens things on version control, i can't find something nice to answer all my questions. If you have anything to say or post a link, please do it here.

1., Do I need to start with version control?

While most people agree, that even single developer/programmer should start with version control, nobody (or at least in understandable form) tells

2., How?

In my nature is that I need to know what means CVS, SVN, Tortoise, Git, GitHub and what are the differences, but I struggle to find some dead simple kick-start into world of version control.

As a developer/programmer, I worked or studied almost every programming/markup language, that is major (from pascal to java, from html to php :) ) and used dozens of editors, IDEs and programms. And when somebody mentions you can use source control even for writing stuff - homeworks for studens, annual reports, books... You have to include even more editors...

I have by now no clue how to start with version control, how to incorporate it in my workflow, if do I need server or what.

Thank you for any help in finding what is what and what to do with it :)

EDIT: From all your answers (thank you), I get the feeling it's really only something like "synced folders with history". (in the most obvious way :) ) If yes, can you answer two questions? (numbered 4. and 5., so it wont mix up in answers :) )

4., what if I decide to completely change structure of my program (for ex. in flex, i decide to use two as3 class instead for MXML components) - won't it make confusion?

5., From other questions, how ofted do I commit? (found this question posted and probably answered, lost it again however)

EDIT 2: Again, more answers (thank you)

6., My question 4 was more like if I accidentally (or not) renew some deleted files (which is probably possible), and it will break my program, because for example it depends on other deleted file, which was not undelete, will I be able to get it? :D

7., I see some ways I will look. Thank you for your answers... however, now I'm confused to whom should I give the "good answer", because you were all very helpful :)

Next, I will (for anyone looking for I was looking for and stumbling upon this question):

Read this stackoverflows:

Watch this video:

http://excess.org/article/2008/07/ogre-git-tutorial/

While understanding the basics from manuals, I narrowed it down to subversion(+TortoiseSVN) and git(hub), which are most used and most favorited. Only problem I now have with github is that private repository is paid, so I will either look fro different git solution or look more into Subversion.

Big thank you to everyone, I upvoted most helpful answers, also thank you for comments. Adam

Edit: Tried Mercurial, but found it not OK for my workflow... now trying subversion, so I marked oldest subversion answer :)

解决方案

  1. Yes, of course.
  2. Start with Subversion and the TortoiseSVN client. It's got excellent support, great tools and is generally far more straighforward to configure and use than Git is.

There's an excellent Subversion manual available for free.

这篇关于源代码管理 - 如果,为什么,如何开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆