Git: clone doesn't download all files?

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, .

+3
2

, . , , , , .

  • , :
    git --bare init --shared=0777

  • 1:
    git clone git://server/repo.git

  • . , git add .

  • :
    git commit -m 'initial commit'
    ( ) .

  • , ( , ) ( ):
    git push origin master

  • , 4. git status , , , Your branch is ahead of origin/whatever by 1 commit

  • , git push, 5.

, git clone git://server/repo.git (, workstation2), , ...

git:

  • (: clone, pull)
  • (git commit)
  • , (git push)

, . " " - .

+3

git init . (git add -- file1 file2 other files), (git commit -m'initial commit').

, git clone /

-1

Source: https://habr.com/ru/post/1779259/


All Articles