APP_DIR="/src"
mkdir $APP_DIR && cd $APP_DIR
git init
git config core.worktree $APP_DIR
git config receive.denycurrentbranch ignore
echo "#\!/bin/sh\ngit checkout -f" > .git/hooks/post-receive
chmod +x .git/hooks/post-receive
APP_DIR="/src"
USER=""
IP=""
git remote add deploy ssh://$USER@$IP/$APP_DIR
git push deploy master
git push