you may want to store your `.git` repo within the webroot? JUST DON’T IT *
get putty
get your login credentials (host, user, PW)
login via putty
on All Inkl you’re now in the root directory of your webspace.
create a new folder for your repo
`mkdir manegefreivontierquaelerei.de.git`
create a new folder for your web-root (where the domain is linked to)**
`mkdir manegefreivontierquaelerei.de`
changedir
`cd manegefreivontierquaelerei.de.git`
create repo
`git init –bare`
now we want to automatically deploy a copy of this repo in the web dir
`cd hooks`
`nano post-receive`
#!/bin/sh
GIT_WORK_TREE=/www/htdocs/w00fXXXX/manegefreivontierquaelerei.de git checkout -f
CTRL+X, choose Y, Enter; this changes the destination-folder and overwrites everything (EVERYTHING!! do not store anything else in this folder)
hook must be executeable (it’s shell file)
`chmod +x post-receive`
now quit the putty console and install git.
navigate to a folder on your local machine, e.g. in windows explorer and right click -> start git bash
`git clone ssh://ssh-w00fXXXX@w00fXXXX.kasserver.com/www/htdocs/w00fXXXX/manegefreivontierquaelerei.de.git`
`cd manegefreivontierquaelerei.de`
that’s it, ready for git-magic.
* except for if you hoster doesn’t allow other setups, then use `.htaccess` to deny web-access
** do not hesitate to enable HTTPS – at All Inkl the Let’s Encrypt certificates are included FOR FREE!!