This is related to Cannot git clone a folder on a server and then edit and git push?
So let's say the hosting company is www.hostingcompany.com
and when I ssh to it, I am in ~
and I will see
~/mysite.com
~/any_other_folders
What is a good Git workflow to version control all source code in ~/mysite.com
, and able to git clone
to my local PC? And so that I can make modification locally, and then issue one line and push to the repo and have all code on ~/mysite.com
up to date?
Is using a git repo, and then sftp
from local PC to ~/mysite.com
a good way? I prefer not to do that as it is harder to see if everything is sync'ed.