Results 1 to 2 of 2

Thread: Cannot use Git repository

  1. #1
    Join Date
    Mar 2013
    Beans
    37

    Cannot use Git repository

    hello

    i try to use a git server i just installed

    the install and project config worked fine, i used these commands :

    Code:
    sudo apt-get install git-core
    git config --global user.email "my@mail.com"
    git config --global user.name "myuser"
    
    cd /media/hd2
    mkdir Project
    git init --bare Project/
    but the access from the same machine does not work
    i also tried from another machine under netbeans, it cant find my repository

    Code:
    cd /home/myuser/Desktop/
    git clone myuser@***.***.***.***/Project
    git clone myuser@***.***.***.***:/Project
    git clone myuser@***.***.***.***:/Project
    git clone myuser@***.***.***.***:Project
    git clone myuser@$***.***.***.***:$Project.git
    git clone myuser@$***.***.***.***:$Project
    git clone myuser@$***.***.***.***:$Project.git
    git clone myuser@***.***.***.***:Project
    git clone myuser@***.***.***.***:GIT/Project
    git clone myuser@***.***.***.***:Project
    git clone myuser@***.***.***.***:Project
    git clone myuser@localhost:Project
    ***.***.***.*** = the ip of the server

    i always get the same error

    Code:
    Cloning into 'Cortex'...
    ssh: connect to host localhost port 22: Connection refused
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.

    can anyone help me
    everyone says it is supposed to be simple but this s@#t is really getting on my nervs

    thanks

    [edit] I installed ssh , the official doc didnt say anything about that
    anyway it seems the git server does not recognize my Project as a repository

    Code:
    git clone myuser@***.***.***.***:Project
    Cloning into 'Project'...
    myuser@***.***.***.***'s password: 
    fatal: 'Project' does not appear to be a git repository
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    Last edited by rompelstilchen; June 30th, 2014 at 07:38 PM.

  2. #2
    Join Date
    Mar 2013
    Beans
    37

    Re: Cannot use Git repository

    ok for those who have the same issue
    i had to use the full path of the repository
    jesus...
    WTF raised to power of 10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •