File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to setup a version control software, so that I can work on multiple PCs with the same code ?

 
John Laker
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been working with CVS at school, but they have their own server. So if I want to achieve the same affect of having the code stored on my local machine and also synchronized with a central repository and any other machine that's hooked up to this repository, how can I do it ?

I want to work on my laptop when away from home, and on desktop when at home and want to maintain the same code.

EDIT: Additional question, does the computer I install the server part of this software on, always have to be ON ?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download the CVS server and install it. Or better yet, install Subversion, Git or Mercurial. For what you want to do, something like Git or Mercurial might be a better bet.
 
John Laker
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Download the CVS server and install it. Or better yet, install Subversion, Git or Mercurial. For what you want to do, something like Git or Mercurial might be a better bet.


Thank you for replying. Additional question, does the computer I install the server part of this software on, always have to be ON ?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it does not have to be always on. Only if you want to use it (e.g. checking-in/-out, making diffs, etc.)
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Laker wrote:Additional question, does the computer I install the server part of this software on, always have to be ON ?

Yes, it has to be on and reachable via the network to any computers that you want to check in / check out items from the version control system from.

There are a number of websites that provide a version system on the web for you. A good one is Github. Note that by default (with a free account) everyone can see your code that is in there. You can make private repositories at Github (so that only people that you assign have access to your code), but that costs money.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Git and Mercurial there is no server. Both your desktop and laptop would contain the full repository. You can, for example, work on your laptop committing changes, and at a later time turn on your desktop and sync the commits to the repository to the desktop.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic