Thank you szimek ! Your link is awesome, i was jumping a lot and finally I got my staff working, but I still don't know how :)
For all who are new in this, here is a short instruction how to implement dev <--> prod environment: Server box ---------------------------------------------------------------------------------------------------------------------------------------------------- 1. Create a repository directory where you want to keep it (e.g mkdir / path/project-name.git) 2. cd /path/project-name.git 3. git --bare init Dev box ---------------------------------------------------------------------------------------------------------------------------------------------------- 1. Go where you want to have your work copy (e.g. cd /home/user/ projects) 1. git clone ssh://[EMAIL PROTECTED]/path/project-name.git /home/user/ projects/project-name 2. echo "This is a first test" > test1.txt 3. git add test1.txt 4. git commit -m "test1.txt was changed" 5. Repeat as much you need this 6. git push or git push --all 7. Don't expect to see this stuff at your remote server repository inside (it is still a puzzle for me) Server box ---------------------------------------------------------------------------------------------------------------------------------------------------- 1. Go where you want to have your production copy (e.g. cd /path/ project-name-prod) 2. cd /path/project-name-prod 3. git clone /path/project-name.git /path/project-name-prod/project- name 4. git pull 5. Now you can see all committed files inside of /path/project-name- prod/project-name/ Hope it will help. On Oct 17, 9:40 am, szimek <[EMAIL PROTECTED]> wrote: > Check this > article:http://toolmantim.com/article/2007/12/5/setting_up_a_new_remote_git_r.... > > Basically you need to create a *public* repository on the production > server: > mkdir /path/project.git > cd /path/project.git > git --bare init > > Then you can add it as a remote on the dev box and push all changes > from dev box into public repo. Then other devs can clone this public > repo and push their changes there as well. > > On 17 Paź, 14:51, VP <[EMAIL PROTECTED]> wrote: > > > Any ideas why is that? > > > On Oct 16, 4:54 pm, VP <[EMAIL PROTECTED]> wrote: > > > > Doesn't work. > > > > What I did: > > > > prod server > > > ------------------------------------------------------------------------- > > > mkdir /path/project2 > > > cd /path/project2 > > > git init > > > > Initialized empty Git repository in .git/ > > > > dev box > > > ------------------------------------------------------------------------- > > > git push ssh://[EMAIL PROTECTED]/path/project2 master > > > > Counting objects: 13, done. > > > Compressing objects: 100% (11/11), done. > > > Writing objects: 100% (13/13), 3.77 KiB, done. > > > Total 13 (delta 1), reused 0 (delta 0) > > > To ssh://[EMAIL PROTECTED]/path/project2 > > > * [new branch] master -> master > > > > prod server > > > --------------------------------------------------------------------------- > > > cd /path/project2 > > > ls -l > > > > Nothing is there instead of .git > > > > On Oct 16, 4:40 pm, "GitHub Support" <[EMAIL PROTECTED]> wrote: > > > > > You shouldn't push into a repo that has a working copy. Instead make a > > > > bare > > > > repo in another path on your server, push to it from the developers' > > > > repos, > > > > and pull from it into your deploy repo when you wish to deploy. > > > > --tek > > > > > On Thu, Oct 16, 2008 at 2:36 PM, VP <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > I have several dev boxes and one prod server. 3 developers are working > > > > > on a project. > > > > > How to get a copy from a production server on their local boxes and > > > > > start working locally and then transfer their code to production back > > > > > properly? > > > > > > Dev box winXP > > > > > Prod box solaris/linux > > > > > Everywhere Git was installed > > > > > > What are we doing: > > > > > > prod server > > > > > --------------------------------------------------------------------------- > > > > > cd /path/project > > > > > git init > > > > > git add . > > > > > git commit -m "initial commit" > > > > > > dev box > > > > > --------------------------------------------------------------------------- > > > > > cd /path/project > > > > > git clone ssh://[EMAIL PROTECTED]/path/project > > > > > > Everything works fine. Developers get their own copy. > > > > > > After making some changes on dev boxes > > > > > > git add file1 file2 file3 > > > > > git commit -m 'Message' > > > > > git push > > > > > > Nothing happens on a production server. Why? > > > > > > Any comments will be appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---
