On Mon, 11 Mar 2013 06:34:50 -0700 (PDT)
Thota Madhu Sudhan Rao <madhu131...@gmail.com> wrote:

> I am reading git book the link is given below 
> http://git-scm.com/book/en/Git-on-the-Server-Getting-Git-on-a-Server
> I did this
> git clone --bare my_project my_project.git
> then I got the following error
> fatal: repository 'my_project' does not exist
> then I created a folder and started the same but it didn't work.How
> to proceed ?

`git clone` is intended to fetch all the data from an *already existing*
repository into a local one, which is first created.  That's why it is
called "clone" after all -- it clones a repository.

>From what you wrote, it appears that you want to *create* a new
repository, not to get a copy of an existing one.
To do this, you should use the `git init` command instead.

Note that creating a bare repository is a highly specialised operation:
normally bare repos are used *on servers* to provide a central ("hub")
repository used by a team of developers to exchange the changes they
implement in their local repositories, and/or to provide repositories
which can be accessed publically.
So, judging from your apparent level of Git knowledge, bare
repositories is not what you need.

On the other hand, if you really intended to clone a repository to
create its bare clone (say, you're trying to set up such a kind of
repository I described above) your "my_project" part of the
`git clone` command must be a valid "Git URL".  How they look like and
what they mean depends on how the existing repository is accessed.
Read the manual on `git clone` to learn more on Git URLs.

It also might happen that you just did not bother to provide us with
precise commands you run and error messages you get, and hence your
problem is not with Git concepts but with actual commands or with your
Git setup or something else completely.
If this is the case, please be precise!
Note that writing "but it didn't work" instead of copying and pasting
the exact error message lowers your changes to get sensible help almost
to zero.  Consult [1] for more info.

1. http://www.catb.org/esr/faqs/smart-questions.html#beprecise

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to