We'll be working with a normal repository from here on out!
|ssh-keygen -t rsa
|# Creates two files - .ssh/id_rsa and .ssh/id_rsa.pub by default
|chmod u=rwx,go= .ssh
|chmod u=rw,go= .ssh/authorized_keys
|# Open .ssh/authorized_keys and copy contents of your .ssh/id_rsa.pub into it
or use ssh-copy-id if your platform supports it
PROTIP: Can't connect without a password? Check .ssh folder and file permissions!
|git init .
|git config receive.denyCurrentBranch ignore
|# Transfer post-receive.sh to .git/hooks/post-receive
|chmod +x .git/hooks/post-receive
|# Copy after_push.sh to deploy/after_push
|git add deploy
|git remote add production "firstname.lastname@example.org:/full/path/to-repo"
|git push production master
|git push production your-branch:master
|git push production HEAD~1:master