File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How to setup a version control software, so that I can work on multiple PCs with the same code ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to setup a version control software, so that I can work on multiple PCs with the same code ?" Watch "How to setup a version control software, so that I can work on multiple PCs with the same code ?" New topic
Author

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

John Laker
Greenhorn

Joined: Oct 01, 2010
Posts: 22
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

Joined: May 14, 2008
Posts: 5827
    
    7

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.


JBoss In Action
John Laker
Greenhorn

Joined: Oct 01, 2010
Posts: 22
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

Joined: Nov 27, 2006
Posts: 423

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

Joined: Aug 16, 2005
Posts: 14146
    
  18

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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
 
subject: How to setup a version control software, so that I can work on multiple PCs with the same code ?