I just created a directory called website. It has several images, an index.html page, etc. I ran:git --bare init --shared=0777
Now he has successfully created an empty shared repo.
Now I am trying to clone this project by going to /developers/developer1on my server and running git clone /live/website. I get the following message:
Initialized empty Git repository in /developer/developer1/website/.git/
warning: You appear to have cloned an empty repository.
I am running UNIX. When I do ls, all I see is the .git folder, and not one of the images / index.html pages has been cloned here. I have tried:
git pull /live/website origin
fatal: Couldn't find remote ref origin
fatal: The remote end hung up unexpectedly
git pull /live/website master
fatal: Couldn't find remote ref master
fatal: The remote end hung up unexpectedly
I know what I need to do origin, because when I do git remote -v, this is what I get:
origin /live/website (fetch)
origin /live/website (push)
So, in short, here is what I need to do:
- Find out how to clone all my files from / live / website in / developer1
- developer1 .
, , ! , /live/website, .