Created
November 19, 2015 17:22
-
-
Save ViniciusAugusto/2086bb88deaae596a5f2 to your computer and use it in GitHub Desktop.
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
Iniciando: | |
TERMINAL SERVIDOR: | |
ssh [email protected] | |
cd /var/www/html/sites/2015/projeto/ | |
git init | |
TERMINAL HOSPEDAGEM: | |
ssh [email protected] | |
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://[email protected]:/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