title: GIT, FTP, NetBeans and NetDrive
body: <p>I've spent long hours trying to figure this out but I just can't get it to work the way I need (maybe what I want is not even possible).</p>
  
  <p>Here is my situation and what I want to achieve:
  I work in <strong>Windows 7</strong>. I am developing a website and I am using <strong>NetBeans 7.2</strong> to manage my project. The website should be published on a <strong>remote webhosting with FTP/FTPS</strong> access.</p>
  
  <p>Even though I will be the only one working on this website, I want to use <strong>GIT</strong> for versioning (I have never used any versioning before), because I want to learn how to work with it and also I will want to develop the website from two different computers (both with NetBeans) so I figure it might really help me.</p>
  
  <p>I believe GIT is supported very well in NetBeans but there are probably still some problems with GIT and FTP. Therefore I installed <strong>NetDrive</strong> and created a <strong>virtual drive for my FTP server under Windows</strong> (the virtual drive works well, I can e.g. simply edit the files there and it shows on the web).</p>
  
  <p>I think it is becoming clear what I want to achieve. I read this nice article: <a href="http://hoth.entp.com/output/git_for_designers.html" rel="nofollow">http://hoth.entp.com/output/git_for_designers.html</a> and <strong><em>I want to do exactly what is in Figure 2 in that article</em></strong>.</p>
  
  <p>I also read this NetBeans GIT tutorial: <a href="http://netbeans.org/kb/docs/ide/git.html" rel="nofollow">http://netbeans.org/kb/docs/ide/git.html</a></p>
  
  <p>So I created a NetBeans project on my new virtual drive (that represents the FTP server), initialized a GIT repository and performed the first commit (all with NetBeans menus).</p>
  
  <p>Then I cloned the GIT repository to a local directory and created a NetBeans project in that directory. The cloning went well and I had the files in my local directory so I could edit them.</p>
  
  <p>After editing and commiting a file, I tried to <strong>push the repository back</strong> to the virtual drive (FTP server) via menu GIT-Remote->Push. I could see the original repository in the dropdown menu there (origin:file:///my_virtual_drive_and_path_to_the_directory). So I clicked Next, selected the branch... And according to the Output, everything went fine.</p>
  
  <p><strong>But the actual files on my virtual drive (FTP server) just didn't change!</strong> The GIT repository version changes, but the files on server just remain as they were before I edited them.</p>
  
  <p>If this all worked, I would also install NetDrive on my other computer, create a virtual drive for my FTP server there, clone the GIT repository and I would be able to work on the project from my other computer with the help of GIT versioning. Then I would only be "pushing" and "pulling" and I would be happy.</p>
  
  <p>But now my head is about to explode. Please tell me if what I want is possible, if I am taking the right direction and where I am making mistakes.</p>
  
  <p>Thank you.</p>