git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Glanzmann <thomas@glanzmann.de>
To: GIT <git@vger.kernel.org>
Subject: Initial push to remote repository
Date: Wed, 19 Sep 2007 13:35:57 +0200	[thread overview]
Message-ID: <20070919113557.GA24674@cip.informatik.uni-erlangen.de> (raw)

Hello,
I used to publish my local work on a machine with all my git
repositories using the following commands:

# Publish a local created repository to a remote repository.
ssh 131.188.30.102 git --git-dir=/home/cip/adm/sithglan/work/repositories/private/astro.git init-db
git remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/astro.git
git push origin master:master
echo >> .git/config <<EOF
[branch "master"]
        remote = origin
        merge = refs/heads/master
EOF
git pull

But since my last update of git it doesn't seem to work that way anymore. Is
there another way to do what I like to using the git way?

        (ad027088pc) [~] mkdir test_initial_push
        (ad027088pc) [~] cd !$
        (ad027088pc) [~/test_initial_push] touch a
        (ad027088pc) [~/test_initial_push] git init
        Initialized empty Git repository in .git/
        (ad027088pc) [~/test_initial_push] git add a
        (ad027088pc) [~/test_initial_push] git commit -m "whatever" a
        Created initial commit 0d408ed: whatever
        0 files changed, 0 insertions(+), 0 deletions(-)
        create mode 100644 a
        (reverse-i-search)`':
        (ad027088pc) [~/test_initial_push] ssh 131.188.30.102 git --git-dir=/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git init-db
        Initialized empty Git repository in /home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/
        (ad027088pc) [~/test_initial_push] git remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/
        You have new mail in /home/adglth0/Maildir
        (ad027088pc) [~/test_initial_push] git push origin master:master
        error: dst refspec master does not match any existing ref on the remote and does not start with refs/.
        fatal: The remote end hung up unexpectedly
        error: failed to push to '131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/'
        (ad027088pc) [~/test_initial_push] git version
        git version 1.5.3.1
        (ad027088pc) [~/test_initial_push] ssh 131.188.30.102 git version
        git version 1.5.2.1

                Thomas

             reply	other threads:[~2007-09-19 11:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19 11:35 Thomas Glanzmann [this message]
2007-09-19 12:25 ` Initial push to remote repository Peter Baumann
2007-09-19 12:27   ` Thomas Glanzmann

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=20070919113557.GA24674@cip.informatik.uni-erlangen.de \
    --to=thomas@glanzmann.de \
    --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).