Created
March 11, 2017 01:43
-
-
Save nenodias/6f0b4c91ece1c6f00d98b524241aa349 to your computer and use it in GitHub Desktop.
Git Permitir receber push
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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