The moose likes IDEs, Version Control and other tools and the fly likes version control 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 "version control" Watch "version control" New topic

version control

madusanka wanniarachchi

Joined: Apr 16, 2008
Posts: 4
how do we get started with version controlling?
must we save those new versions in other locations?
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

Well, I assume from your question that you don't know a lot about version control, so I'll give you a brief intro. To have effective version control, you'll have to have a version control system (like CVS, subversion, MS visual source safe, Mercurial, etc). Those systems/servers contain repositories for the files you need to have under version control. Every time you change a file on your system, you can commit it to the repository, and it saves the changes. You can go back to any previous version. You can have many branches, and integrate them later, and many other features. You do not have to store new versions in different locations. The version control system manages everything for you.

Now, what does netbeans have to do with that? Well, netbeans comes with default support for CVS and subversion (and Mercurial in version 6.1). This means that you can put the whole project in one of those version control systems, and you can update from and commit to the repository from within netbeans itself. You can also view differences and history from netbeans, which is great. All you'll need to do is have your version control system installed and configured on the server you want, and you'll be connecting to it using netbeans.

Visit my blog:
madusanka wanniarachchi

Joined: Apr 16, 2008
Posts: 4
thanks for the reply
have to learn more how to use the ide.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

Originally posted by chandima akalanka:
have to learn more how to use the ide.

There are some learning trails provided by with everything you need to know to develop applications using NetBeans IDE.

think it is best place to start.

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Vilmantas Baranauskas
Ranch Hand

Joined: Dec 20, 2006
Posts: 89
For a start, you don't need a server - you can have your repository locally.

Assuming you have Subversion command line client, you could execute (on linux/unix) "svnadmin create /tmp/myrepo" and then use "file:///tmp/myrepo" as a subversion repository in your IDE.

Alternatively you could try a hosted Subversion server e.g. at (they have a free plan too).

Author of <a href="" target="_blank" rel="nofollow">NewsInjector</a>
I agree. Here's the link:
subject: version control
It's not a secret anymore!