From: Richard Curnow <rc@rc0.org.uk>
To: git@vger.kernel.org
Subject: git push to a local directory with no .git in it
Date: Thu, 29 Sep 2005 23:25:59 +0000 (UTC) [thread overview]
Message-ID: <loom.20050930T011606-58@post.gmane.org> (raw)
Background: I have to use plain FTP to upload content to my web site. I keep a
local mirror of the entire site, then use an automated upload mechanism to do
the FTP step.
To release a git repository onto my site, I want to 'git push' from my working
area to the release area in the local mirror. So what ends up as
http://www.rpcurnow.force9.co.uk/git/mairix.git
lives in ~/homepage/git/mairix.git locally. That directory contains
HEAD, refs, objects, hooks; I don't have a .git subdirectory in the middle.
If I cd to ~/gitwork/mairix (which is a regular working area) and do
git push ~/homepage/git/mairix.git master:master
I get
fatal: /home/richard/homepage/git/mairix.git doesn't appear to be a git directory
presumably because there is no .git in it.
I could cd to ~/homepage/git/mairix.git and do things like
GIT_DIR=. gitk --all
but what's the equivalent of this GIT_DIR trick when it's the remote end of
a 'git push' that has the problem?
Cheers
Richard
next reply other threads:[~2005-09-29 23:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 23:25 Richard Curnow [this message]
2005-09-30 0:05 ` git push to a local directory with no .git in it Junio C Hamano
2005-09-30 22:51 ` Richard Curnow
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=loom.20050930T011606-58@post.gmane.org \
--to=rc@rc0.org.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox