I'm trying to use version control, but I'm so used to the old methods of editing files directly via FTP that I feel embarrassed about what to do. Therefore, I am thinking of one solution and please help me with this if this is possible or not.
I have a user folder on a Linux VPS system (only for one VPS)
/home/user/public_html2
Now it will be connected with Http://demo.server.com. This directory will be version controlled repoin the folder /usr/bin/repo/so that I can commit the changes.
Now I will have another directory named
/home/user/public_htmlwhich will update the content as commit is done in /home/user/public_html2.
What /home/user/public_htmlwill be associated withhttp://main.server.com
So I continue to work and edit the files in public_html2 with the usual and test FTP code, as it is on the main site.
Is it possible?
source
share