Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My idea of process to use Git :
- Existing production Server : /data/web/monsite
- Copy of monsite to my local /Users/guillaume/site/monsite
- Local :
- cd /Users/guillaume/site/monsite
- git init
- git add .
- git commit -m "Initialization"
- Production Server :
- cd /home/git/
- mkdir monsite.git
- cd monsite.git
- git init --bare
- Local :
- git remote add origin ssh://IP/home/git/monsite.git
- Send my modifications (and so monsite) :
- Local :
- git push origin master
- Production Server :
- cp -R /data/web/monsite /data/web/monsite_sov
- rm -R /data/web/monsite
- git clone /home/git/monsite.git /data/web/monsite
- ---
- So after I can git pull origin master and push my modifications
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement