When creating a project it is always wise to use some version control program.
I prefer to use SVN it is fast, easy to use and its support is build in in NetBeans IDE. Since I use hosting at 1and1 I tried to install my own SVN repository there. It is very easy and it worked almost instantly.
First step: create svn repository on the server.
Just SSH to your account and create a new directory and svn repository in it:
cd /
mkdir svn
svnadmin create /kunden/homepages/……/htdocs/svn
to get a full path to your home directory call “pwd” command and replace ……. with your information
Now your svn repository is set up – we can procees to the second step: netbeans configuration
from putty download page (here) get plink.exe and place it in c:\Program Files\Putty\ (you can choose different path)
now in your Project window right click on your project name and select Versioning->Import into subversion repository
for Repository URL select svn+ssh:// and enter:svn+ssh://your.domain.com/kunden/homepages/……./htdocs/svn (same path that you have used for svnadmin command)
then as Tunnel Command enter: C:/Program Files/Putty/plink.exe -l ssh_username -pw ssh_password
click Next
now in “Repository Folder” enter desired name like “my_project”
enter a message – for example “initial import”
click Next again
after a while you will be prompted what files you want to import – usually you want to import whole project so just click Finish
And you are done – enjoy your SVN on 1and1 account
the only thing that I don’t like is having open text password for my ssh account in netbeans – it I find a way to hide somewhere I will share it with you