Skip to content

Instantly share code, notes, and snippets.

@nenodias
Created March 11, 2017 01:43
Show Gist options
  • Select an option

  • Save nenodias/6f0b4c91ece1c6f00d98b524241aa349 to your computer and use it in GitHub Desktop.

Select an option

Save nenodias/6f0b4c91ece1c6f00d98b524241aa349 to your computer and use it in GitHub Desktop.
Git Permitir receber push
git init --bare
git config receive.denyCurrentBranch ignore
#criar arquivo do hook
touch hooks/post-receive && chmod +x hooks/post-receive && vim hooks/post-receive
#preencher o arquivo com \/
#!/bin/sh
GIT_WORK_TREE=/home/[USUARIO-FTP]/apps/seusite.com git checkout -f
cd /home/[USUARIO-FTP]/apps/seusite.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment