Adding version control to an existing project

前端 未结 22 1171
天涯浪人
天涯浪人 2020-12-30 02:52

I am working on a project that has grown to a decent size, and I am the only developer. We currently don\'t use any version control, but I definitely need to start.

22条回答
  •  被撕碎了的回忆
    2020-12-30 03:31

    I use mercurial on my desktop and I love it. Creating the repository is super easy...

    hg init /path/to/repository
    

    Add the files...

    hg add /folder/pattern  
    
    OR
    
    hg add FILE
    

    Then you just commit...

    hg commit
    

    And you're up and running.

    The other great thing is when I want to sync to my laptop it's just...

    hg pull //desktop_name/path/to/repo/  
    hg update
    

    The thing that I like about subversion is the pluggin for Visual Studio, I stay on top of my updates more when the status icons are starring me in the face all of the time. The pluggin may definitely make up for the hassel of setting the svn repository up if you're going to be working with the one project a lot.

提交回复
热议问题