From: Adam Nielsen <adam.nielsen@uq.edu.au>
To: git@vger.kernel.org
Subject: Unable to get "pretty" URL aliases working
Date: Mon, 11 Jan 2010 15:57:09 +1000 [thread overview]
Message-ID: <4B4ABDB5.9000203@uq.edu.au> (raw)
Hi all,
I'm attemping to learn Git but I've gotten stuck trying to configure a
server to host my repositories.
I would like to be able to do this:
git clone ssh://myserver/project.git
git push
And have it work, but I keep getting errors about "/project.git" not
existing in the root directory of my server. (Which is correct, they
are stored elsewhere.)
The only documentation I could find about mapping a deep path to a
"pretty" URL like this was in git-push(1) which stated I should add
something like the following to a "config file". I'm guessing it means
/etc/gitconfig on the server.
[url "ssh://myserver/path/to/repos/"]
insteadOf myserver:
I'm a bit confused about where the colon comes into it, if I use that on
the command line I get errors about resolving domain names. I've tried
many variations of the insteadOf line ("ssh://myserver/", "myserver:/",
"myserver/" etc.) but none of them make any difference. I don't even
know if this file is being used.
Any pointers about how this URL mapping can be set up?
Many thanks,
Adam.
(Please CC)
next reply other threads:[~2010-01-11 6:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 5:57 Adam Nielsen [this message]
2010-01-11 7:46 ` Unable to get "pretty" URL aliases working Johannes Sixt
2010-01-11 7:59 ` Junio C Hamano
2010-01-11 23:23 ` Adam Nielsen
2010-01-13 6:55 ` Junio C Hamano
2010-01-14 0:45 ` Adam Nielsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4ABDB5.9000203@uq.edu.au \
--to=adam.nielsen@uq.edu.au \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.