I have a new client wordpress site, which was built in a bit of a mess (but it works).
I have installed Git on the remote server and on my local machine.
Before I start developing locally, I need all documents from remote server copied to my local server.
How do I do this using Git please?
I am a git noob, so please go easy on me... Is it as simple as...
REMOTE SERVER:
git commit -m "Initial Pull"
LOCAL SERVER:
git pull website master
I know I can just copy files over using FTP, but I wish to have the local and remote servers to be synched / Version Controlled before I start coding away.
Or have I completely misunderstood the purpose of Git?
Update:
assuming that my username is harry and my server domain name is potter.co.uk and the git repository is in /home/harry/site.git could you confirm if this will work? Will I break anything if I try this out on my local machine?
git clone harry@potter.co.uk:/home/potter/site.git