Using version control, but still accessing files in the usual way

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?

+3
source share
3 answers

When you use version control, why do you need an FTP place to edit files ... This defeats the whole goal. Rather, check the files from the repository to your local computer, and after the changes are completed, copy the code. If you do not want to use this version while working with files on your local computer, just export the code instead of checking it.

, , , / . , , , .

.

+4

, . , . , " ", , , - , . , , .

+2

script. script, . script, , . , , script, , .

Use rsync instead of FTP, if possible, to avoid transferring immutable files every time.

+2
source

All Articles