I am connecting to my shared server with git
. Git was already install on the server, so I git init
my existing project then cloned from it locally. So far so good. I tested making some changes and pushed. This failed, but with the help of this question, I was able to push to my remote repository. Here is a sample successful push response:
git push origin master
Password:
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 262 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
To user@address:/var/chroot/home/content/59/6030759/html/git-directry
ca4fd96..fe56682 master -> master
Now it seemed to be working, but no changes take place remotely. I tried sshing in to see if I could git pull
or git status
, but then I get the error:
-bash-4.2$ git status
fatal: This operation must be run in a work tree
-bash-4.2$ git pull
fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree.
This is a godaddy server, so potentially they are blocking my pushes but I have setup my ssh key. Any ideas on why my commits are not getting through?
Edit: Server has git
version 1.7.1, mine is 1.9.1
git log
and that shows all my latest test commits. But clearly the files are not being changed. When I make changes to files, or create new ones, they are not showing up. – hodale Nov 13 '15 at 22:17