pip install from a gitosis

I have working gitosis repo. If I do

git clone git@server:repo.git

it clones the repo correctly. However, it does not work if I do:

  • How can I set up my own local Git server on my own computer?
  • Git still showing deleted files after a commit
  • How do I ignore this Eclipse file in Git?
  • Gerrit: is there a way to push just the top commit to the same branch?
  • Git pre-push hook not working
  • error: RPC failed; result=55, HTTP code = 0 Increased buffer no success
  • git clone ssh://git@server:repo.git
    
    Cloning into repo...
    ssh: connect to host  port 22: Connection refused
    fatal: The remote end hung up unexpectedly
    

    The problem is that when I use pip I I do:

    pip install git+ssh://git@server:repo.git
    

    and of course yields:

    Cloning into repo...
    ssh: connect to host  port 22: Connection refused
    fatal: The remote end hung up unexpectedly
    

    If I want to do:

    pip install git+git@server:repo.git 
    

    I get

    ValueError: ('Expected version spec in', 'git+git@server:repo.git', 'at', '+git@server:repo.git')
    

    Is there a way to have pip or gitosis configured so I can make it work?

    Thanks,

    (please avoid ‘use gitolite’, I would if I could)

  • New pull request without unmerged commits
  • How can I configure Magit to use my Github user name?
  • Why does “git difftool” not open the tool directly?
  • Cloned project with dynamic includes in composer.json
  • Git squashing commits with sensitive data
  • Xcode 7 doesn't show new remote branches using Git
  • 2 Solutions collect form web for “pip install from a gitosis”

    I would rather use the ssh uri syntax (rather than the SCP syntax)

    git clone git+ssh://git@server/repo.git
    

    To install, you should only have to run:

    pip install git+git://host/path_to_repo/repo.git
    

    So for your example:

    pip install git+git://server/path_to_repo/repo.git
    
    Git Baby is a git and github fan, let's start git clone.