cancel
Showing results for
Did you mean:
See all
See all
##### Groups
Explore all groups

# 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 vote

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.)

Community showcase
Published Friday in Agile

### Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

110 views 0 5

### Atlassian User Groups

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

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.