git repository URL using '-upload-pack' option

I'm pulling a git repo from one of my colleagues. I usually do the following on the command line:

  • git clone <host_name> /path/to/repo/i/want -u /stuff/bin/git-upload-pack/

How do I convert this into a valid Repository URL per https://confluence.atlassian.com/display/BAMBOO058/Git ? I'm having trouble finding examples or documentation regarding additional options beyond the URL. At the moment, I'm trying the URL: <host_name>/:path/to/repo/i/want/, which produces the error

  • Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists

Any help greatly appreciated

1 answer

Assuming you are doing this over a network file share, you need to give the part you described as

&lt;host_name&gt;/:path/to/repo/i/want/

as a valid UNC path:

\\host_name\path\to\repo\i\want\

If you are on Windows, or something like

host_name/path/to/repo/i/want/

on linux (The ":" in your string is not in the right place and only necessary if you are giving a port number when using HTTP(S) or SSH.)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 01, 2018 in Summit

Summit 2019 is going to Las Vegas

You asked we answered - Summit 2019 registration is now open! Can you believe Atlassian Summit hasn’t been to the US since 2017? Now is the time to get ready for an event to remember! Our biggest u...

284 views 6 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you