{"thread":{"id":"9942","subject":"Initial push to remote repository","startedAt":"2007-09-19T11:35:57Z","lastAt":"2007-09-19T12:27:38Z","messageCount":3,"participants":["Thomas Glanzmann","Peter Baumann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"53573","messageId":"20070919113557.GA24674@cip.informatik.uni-erlangen.de","threadId":"9942","inReplyTo":null,"subject":"Initial push to remote repository","fromName":"Thomas Glanzmann","fromEmail":"thomas@glanzmann.de","sentAt":"2007-09-19T11:35:57Z","receivedAt":"2007-09-19T11:35:57Z","isPatch":false,"sender":{"key":"thomas@glanzmann.de","avatar":null},"body":"Hello,\nI used to publish my local work on a machine with all my git\nrepositories using the following commands:\n\n# Publish a local created repository to a remote repository.\nssh 131.188.30.102 git --git-dir=/home/cip/adm/sithglan/work/repositories/private/astro.git init-db\ngit remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/astro.git\ngit push origin master:master\necho >> .git/config <<EOF\n[branch \"master\"]\n        remote = origin\n        merge = refs/heads/master\nEOF\ngit pull\n\nBut since my last update of git it doesn't seem to work that way anymore. Is\nthere another way to do what I like to using the git way?\n\n        (ad027088pc) [~] mkdir test_initial_push\n        (ad027088pc) [~] cd !$\n        (ad027088pc) [~/test_initial_push] touch a\n        (ad027088pc) [~/test_initial_push] git init\n        Initialized empty Git repository in .git/\n        (ad027088pc) [~/test_initial_push] git add a\n        (ad027088pc) [~/test_initial_push] git commit -m \"whatever\" a\n        Created initial commit 0d408ed: whatever\n        0 files changed, 0 insertions(+), 0 deletions(-)\n        create mode 100644 a\n        (reverse-i-search)`':\n        (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\n        Initialized empty Git repository in /home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/\n        (ad027088pc) [~/test_initial_push] git remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/\n        You have new mail in /home/adglth0/Maildir\n        (ad027088pc) [~/test_initial_push] git push origin master:master\n        error: dst refspec master does not match any existing ref on the remote and does not start with refs/.\n        fatal: The remote end hung up unexpectedly\n        error: failed to push to '131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/'\n        (ad027088pc) [~/test_initial_push] git version\n        git version 1.5.3.1\n        (ad027088pc) [~/test_initial_push] ssh 131.188.30.102 git version\n        git version 1.5.2.1\n\n                Thomas\n"},{"id":"53575","messageId":"20070919122558.GA4777@xp.machine.xx","threadId":"9942","inReplyTo":"20070919113557.GA24674@cip.informatik.uni-erlangen.de","subject":"Re: Initial push to remote repository","fromName":"Peter Baumann","fromEmail":"waste.manager@gmx.de","sentAt":"2007-09-19T12:25:58Z","receivedAt":"2007-09-19T12:25:58Z","isPatch":false,"sender":{"key":"waste.manager@gmx.de","avatar":null},"body":"On Wed, Sep 19, 2007 at 01:35:57PM +0200, Thomas Glanzmann wrote:\n> Hello,\n> I used to publish my local work on a machine with all my git\n> repositories using the following commands:\n> \n> # Publish a local created repository to a remote repository.\n> ssh 131.188.30.102 git --git-dir=/home/cip/adm/sithglan/work/repositories/private/astro.git init-db\n> git remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/astro.git\n> git push origin master:master\n> echo >> .git/config <<EOF\n> [branch \"master\"]\n>         remote = origin\n>         merge = refs/heads/master\n> EOF\n> git pull\n> \n> But since my last update of git it doesn't seem to work that way anymore. Is\n> there another way to do what I like to using the git way?\n> \n>         (ad027088pc) [~] mkdir test_initial_push\n>         (ad027088pc) [~] cd !$\n>         (ad027088pc) [~/test_initial_push] touch a\n>         (ad027088pc) [~/test_initial_push] git init\n>         Initialized empty Git repository in .git/\n>         (ad027088pc) [~/test_initial_push] git add a\n>         (ad027088pc) [~/test_initial_push] git commit -m \"whatever\" a\n>         Created initial commit 0d408ed: whatever\n>         0 files changed, 0 insertions(+), 0 deletions(-)\n>         create mode 100644 a\n>         (reverse-i-search)`':\n>         (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\n>         Initialized empty Git repository in /home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/\n>         (ad027088pc) [~/test_initial_push] git remote add origin 131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/\n>         You have new mail in /home/adglth0/Maildir\n>         (ad027088pc) [~/test_initial_push] git push origin master:master\n>         error: dst refspec master does not match any existing ref on the remote and does not start with refs/.\n>         fatal: The remote end hung up unexpectedly\n>         error: failed to push to '131.188.30.102:/home/cip/adm/sithglan/work/repositories/private/test_initial_push.git/'\n\nTry to give it the full ref name and it should work, e.g.\n\n\tgit push origin refs/heads/master:refs/heads/master\n\n-siprbaum\n"},{"id":"53576","messageId":"20070919122738.GB24674@cip.informatik.uni-erlangen.de","threadId":"9942","inReplyTo":"20070919122558.GA4777@xp.machine.xx","subject":"Re: Initial push to remote repository","fromName":"Thomas Glanzmann","fromEmail":"thomas@glanzmann.de","sentAt":"2007-09-19T12:27:38Z","receivedAt":"2007-09-19T12:27:38Z","isPatch":false,"sender":{"key":"thomas@glanzmann.de","avatar":null},"body":"Hello Peter,\n\n> Try to give it the full ref name and it should work, e.g.\n\n> \tgit push origin refs/heads/master:refs/heads/master\n\nI owe you a beer or two.\n\n(ad027088pc) [~/work/raid_ueberwachung] git push origin refs/heads/master:refs/heads/master\nupdating 'refs/heads/master'\n  from 0000000000000000000000000000000000000000\n  to   aca655af03443ef8b4adea269b50471894686b14\n Also local refs/remotes/origin/master\nGenerating pack...\nDone counting 18 objects.\nDeltifying 18 objects...\n 100% (18/18) done\nWriting 18 objects...\n 100% (18/18) done\nTotal 18 (delta 6), reused 0 (delta 0)\nrefs/heads/master: 0000000000000000000000000000000000000000 -> aca655af03443ef8b4adea269b50471894686b14\n\n        Thomas\n"}]}