Sometimes you just need an easy way to have a private git repo. Put it on your favorite VPS, SBC, linux box, etc
creates a folder and git repo via relative path of user directory
GIT_REMOTE_DIR=GIT/hosted/example
GIT_REMOTE_HOST=myhost.example.com
ssh ${GIT_REMOTE_HOST} "mkdir -p ${GIT_REMOTE_DIR} && git init --bare ${GIT_REMOTE_DIR}"
git clone ${GIT_REMOTE_HOST}:${GIT_REMOTE_DIR}
## extra credit
REPO_NAME=$(basename ${GIT_REMOTE_DIR})
pushd ${REPO_NAME}
printf "# ${REPO_NAME}\n\nTODO Write documentation" > README.md
git add README.md
git commit -m 'init repo readme'
git push
popd