* Initial push to remote repository
@ 2007-09-19 11:35 Thomas Glanzmann
2007-09-19 12:25 ` Peter Baumann
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Glanzmann @ 2007-09-19 11:35 UTC (permalink / raw
To: GIT
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Initial push to remote repository
2007-09-19 11:35 Initial push to remote repository Thomas Glanzmann
@ 2007-09-19 12:25 ` Peter Baumann
2007-09-19 12:27 ` Thomas Glanzmann
0 siblings, 1 reply; 3+ messages in thread
From: Peter Baumann @ 2007-09-19 12:25 UTC (permalink / raw
To: Thomas Glanzmann; +Cc: GIT
On Wed, Sep 19, 2007 at 01:35:57PM +0200, Thomas Glanzmann wrote:
> 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/'
Try to give it the full ref name and it should work, e.g.
git push origin refs/heads/master:refs/heads/master
-siprbaum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Initial push to remote repository
2007-09-19 12:25 ` Peter Baumann
@ 2007-09-19 12:27 ` Thomas Glanzmann
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Glanzmann @ 2007-09-19 12:27 UTC (permalink / raw
To: Peter Baumann; +Cc: GIT
Hello Peter,
> Try to give it the full ref name and it should work, e.g.
> git push origin refs/heads/master:refs/heads/master
I owe you a beer or two.
(ad027088pc) [~/work/raid_ueberwachung] git push origin refs/heads/master:refs/heads/master
updating 'refs/heads/master'
from 0000000000000000000000000000000000000000
to aca655af03443ef8b4adea269b50471894686b14
Also local refs/remotes/origin/master
Generating pack...
Done counting 18 objects.
Deltifying 18 objects...
100% (18/18) done
Writing 18 objects...
100% (18/18) done
Total 18 (delta 6), reused 0 (delta 0)
refs/heads/master: 0000000000000000000000000000000000000000 -> aca655af03443ef8b4adea269b50471894686b14
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-19 12:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 11:35 Initial push to remote repository Thomas Glanzmann
2007-09-19 12:25 ` Peter Baumann
2007-09-19 12:27 ` Thomas Glanzmann
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).