git clone --bare: fatal: repository does not exist

BonifatiusK

I am using git version 1.7.10.4 on debian Wheezy.

I am trying to create a new repository (according to the 'manual of git-scm.com) However everytime I get this fatal error:

fatal: repository 'poekoe' does not exist

So this is what I type at command line:

git clone --bare --progress poekoe poekoe.git

I also tried this on a sqeeze distribution and there it works fine. (git version on squeeze is: git version 1.7.2.5)

All installed packages on the wheezy distribution are:

libcurl4-gnutls-dev
libexpat1-dev
gettext
vim
libz-dev
libssl-dev
git

all to get this working.

Does anybody know how to fix this? I am running the script as root

VonC
git clone --bare --progress poekoe poekoe.git

That git clone only works if your current directory does contain the repo poekoe.

If your current folder is empty, then the error message makes sense.

The URLs section recommends using absolute paths:

$ git clone --bare -l /home/proj/.git /pub/scm/proj.git

The OP Bonifatiusk reports in the comments a solution depending on git version:

I found this:

git --bare init poekoe.git: this is indeed different from older versions who will init a new repo using --bare with clone.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to git clone from *local bare* repository

From Dev

one git bare repository used for many clone

From Dev

Fatal: Heroku repository does not exist

From Dev

git clone fatal: 'origin' does not appear to be a git repository for VMware vmhgfs share

From Dev

Where does a bare Git repository save?

From Dev

How do I clone an empty bare repository with Ansible git module?

From Dev

How to setup a bare git repository on a server to clone per ssh?

From Dev

How do I clone an empty bare repository with Ansible git module?

From Dev

Docker image git clone error "fatal: Not a git repository"

From Dev

Local Git repository does not exist after successful clone from cygwin bash

From Dev

GIT: fatal: 'master' does not appear to be a git repository

From Dev

Difference in a bare and non-bare Git repository

From Dev

Difference in a bare and non-bare Git repository

From Dev

Clone of an old bare repository appears empty

From Dev

Renaming a remote (bare) repository with git

From Dev

concept of bare shared repository in git

From Dev

Rename branches in git bare repository

From Dev

Tracking branches in bare git repository?

From Dev

Adding things to a git bare repository

From Dev

concept of bare shared repository in git

From Java

Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

From Java

Git Clone - Repository not found

From Dev

conq: repository does not exist. fatal: Could not read from remote repository

From Dev

git clone --bare <remote-uri> does not copy the files from remote uri

From Java

What's the difference between git clone --mirror and git clone --bare

From Dev

Why are git clone --bare and --origin incompatible?

From Dev

fatal: 'jigar/test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly

From Dev

FATAL: database does not exist

From Dev

Git fatal not valid : is this a git repository?

Related Related

  1. 1

    How to git clone from *local bare* repository

  2. 2

    one git bare repository used for many clone

  3. 3

    Fatal: Heroku repository does not exist

  4. 4

    git clone fatal: 'origin' does not appear to be a git repository for VMware vmhgfs share

  5. 5

    Where does a bare Git repository save?

  6. 6

    How do I clone an empty bare repository with Ansible git module?

  7. 7

    How to setup a bare git repository on a server to clone per ssh?

  8. 8

    How do I clone an empty bare repository with Ansible git module?

  9. 9

    Docker image git clone error "fatal: Not a git repository"

  10. 10

    Local Git repository does not exist after successful clone from cygwin bash

  11. 11

    GIT: fatal: 'master' does not appear to be a git repository

  12. 12

    Difference in a bare and non-bare Git repository

  13. 13

    Difference in a bare and non-bare Git repository

  14. 14

    Clone of an old bare repository appears empty

  15. 15

    Renaming a remote (bare) repository with git

  16. 16

    concept of bare shared repository in git

  17. 17

    Rename branches in git bare repository

  18. 18

    Tracking branches in bare git repository?

  19. 19

    Adding things to a git bare repository

  20. 20

    concept of bare shared repository in git

  21. 21

    Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

  22. 22

    Git Clone - Repository not found

  23. 23

    conq: repository does not exist. fatal: Could not read from remote repository

  24. 24

    git clone --bare <remote-uri> does not copy the files from remote uri

  25. 25

    What's the difference between git clone --mirror and git clone --bare

  26. 26

    Why are git clone --bare and --origin incompatible?

  27. 27

    fatal: 'jigar/test.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly

  28. 28

    FATAL: database does not exist

  29. 29

    Git fatal not valid : is this a git repository?

HotTag

Archive