Skip to content

Instantly share code, notes, and snippets.

@ViniciusAugusto
Created November 19, 2015 17:22
Show Gist options
  • Save ViniciusAugusto/2086bb88deaae596a5f2 to your computer and use it in GitHub Desktop.
Save ViniciusAugusto/2086bb88deaae596a5f2 to your computer and use it in GitHub Desktop.
Iniciando:
TERMINAL SERVIDOR:
ssh root@10.1.1.202
cd /var/www/html/sites/2015/projeto/
git init
TERMINAL HOSPEDAGEM:
ssh projeto@projeto.com.br
mkdir projeto.git
cd projeto.git
git init --bare
cd hooks
touch post-receive
nano post-receive
GIT_WORK_TREE=/home/projeto git checkout -f
(ctrl x - y/s - enter)
chmod +x post-receive
exit
TERMINAL SERVIDOR:
git remote add web ssh://projeto@projeto.com.br:/home/projeto/projeto.git
git add -f *
git add .
git commit -m “Iniciando GIT”
git push web master
Utilizando:
git add *
git commit -m “Alteração no módulo X”
git push web master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment