- Set up the remote repo
cd ~
git init --bare tilde.git
- Set up ~/public_html as a working directory of it
mv public_html{,.bak} #back up the old one
git clone tilde.git/ public_html/
-
Clone it locally
git clone eventi@tildesare.cool:tilde.git
Cloning into 'tilde'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
- Make some changes and push them.
echo hello > index.html
git add index.html && git commit -m "Made the index" && git push
- Update from git.
cd ~/public_html && git pull
- HOOK IT UP
# put a post-receive hook which checks out the code into ~/public_html
# like this
I know this sucks, but I'm busy... scorn: