on a remote server i have a rails 3 app. i understand that i cannot push changes to a non bare repository. so,
- on the production machine, in the rails root directory, i created a directory named '.git'
- cd into the new .git directory
- ran git init --bare
- then from my development machine entered this command: git push ssh://jay@domain.com:12345/home/jay/public_html/domain/.git master:master
The push seemed successful because i got this msg:
Counting objects: 235, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (214/214), done.
Writing objects: 100% (235/235), 399.79 KiB, done.
Total 235 (delta 44), reused 0 (delta 0)
To ssh://jay@domain.com:12345/home/jay/public_html/domain/.git
* [new branch] master -> master
changes were made in the bare '.git' directory but no changes were made to the remote production machine code. Is there another command that i need to run after pushing the changes?
UPDATE: I am the only developer. There are only two repositories. 1. on my development machine i installed git and then ran init, add and commit 2. on my remote production server i installed git and performed the the steps above