So let's say I got a web server that I can access over ftp. Most people update it using dreamweaver, and I update by basically copying and pasting manually between my computer and the server. My question is, can I use git to manage the site (and not have to manually copy/paste), while other people update it using other methods?
- I can't install much on the server. I would like to only put files on the server to set this up.
- I do not want to have to manually copy and paste to upload to the server.
- I do not want to inadvertently undo the changes of others not using git, nor do I want to make them use git.
- That said, if both me and others edit the website at the same time, I would want to take advantage of git's merging capabilities.
How should I set this up? (Also, what scripts could I put on my computer to make this easier (both hooks and non-hooks)? (I would know how to make them, I just would like tips as what kind I should make for this workflow.))
Note: I use linux, if that matters. (Also, I use git from the command line).
Note: I am fine with doing some stuff manually that normally isn't necessary (such as turning my teammates changes into commits). It is manual copying and pasting I want to avoid.
ssh
into this server? – Cootch