From: merlyn@stonehenge.com (Randal L. Schwartz)
To: git@vger.kernel.org
Subject: still unclear on setting up a repository
Date: 19 Nov 2005 16:40:20 -0800 [thread overview]
Message-ID: <86br0g883v.fsf@blue.stonehenge.com> (raw)
I'm really unclear here if it's me, the code, or the docs...
first, create the "remote"
% cg-admin-setuprepo remote.git
that works fine, now set up the "local"
% mkdir local.git
% cd local-git
% cg-init -m "junk message why should I have to do this one, it's dumb"
Now here's where I'm unclear. I need to "push" this into the remote,
so I try this:
% cg-branch-add origin "$(cd ..; pwd)/remote.git#master"
% cg-branch-ls
This seems to report the right thing. I have a branch "origin"
that points at the remote repository. So far, I think I'm understanding
what's happening. But now, go boom:
% cg-push
cg-push: where to push to?
Huh? How do I do the initial push? Not this way? Is it me, docs, or
code that is broken here?
UPDATE...
aha... "cg-push origin" works. But "cg-push" is documented to
default to "origin". Why doesn't it?
And then, another "go-boom" problem:
% cg-fetch
Hard links don't work - using copy
Fetching head...
cp: illegal option -- d
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
cg-fetch: unable to get the head pointer of branch master
Any chance you could make this more POSIX-like? I know you have a big
warning in README.osx, but are you *really* needing all those weird
GNU-isms? Maybe you could fall back to using rsync to copy exactly
what you need?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
next reply other threads:[~2005-11-20 0:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-20 0:40 Randal L. Schwartz [this message]
2005-11-20 1:07 ` still unclear on setting up a repository Andreas Ericsson
2005-11-20 1:14 ` Randal L. Schwartz
2005-11-20 2:10 ` Andreas Ericsson
2005-11-27 14:50 ` Petr Baudis
2005-11-27 23:15 ` Petr Baudis
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=86br0g883v.fsf@blue.stonehenge.com \
--to=merlyn@stonehenge.com \
--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;
as well as URLs for NNTP newsgroup(s).