i have set up a bare repo on a remote server and can push to it but i am not seeing any files on the remote when i’m finished…. this is what I’m seeing when i push:
my-macbook-pro:myapp me$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: www/index.php
#
no changes added to commit (use "git add" and/or "git commit -a")
my-macbook-pro:myapp me$ git add .
my-macbook-pro:myapp me$ git commit -m 'test'
[master 57e4b86] test
1 files changed, 2 insertions(+), 1 deletions(-)
my-macbook-pro:myapp me$ git push
me@myapp.com's password:
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 368 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
To ssh://me@myapp.com:1111/var/www/myapp.git
ce07e61..57e4b86 master -> master
my-macbook-pro:myapp me$
when i ssh in, the files i’ve “pushed” are not there. any ideas?
You’re not supposed to see files, you’re supposed to see revisions. Besides, you have a bare repository on remote which doesn’t have a working directory at all.
You can do something like
git branch,git show master,git logand some such to examine repository content.