Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

version control

 
madusanka wanniarachchi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do we get started with version controlling?
must we save those new versions in other locations?
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
madusanka wanniarachchi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply
have to learn more how to use the ide.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chandima akalanka:
have to learn more how to use the ide.


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

think it is best place to start.
 
Vilmantas Baranauskas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://www.codespaces.com/ (they have a free plan too).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic