On Thu, Feb 18, 2010 at 06:59:31PM -0500, Art Hunkins wrote:
> I did the "initial commit" with these results (similar to what I got 
> before):
> 
> [o...@xo-05-25-69 ~]$ cd Activities/OurMusic.activity
> [o...@xo-05-25-69 OurMusic.activity]$ git remote add origin 
> gitori...@git.sugarlabs.org:our-music/mainline.git
> [o...@xo-05-25-69 OurMusic.activity]$ git push origin master
> error: src refspec master does not match any.
> fatal: The remote end hung up unexpectedly
> error: failed to push some refs to 
> 'gitori...@git.sugarlabs.org:our-music/mainline.git'
> 
> Is the problem perhaps that this is not an "initial commit"?

yeah, I missed your "git init" command, most likely "src refspec master
does not match any" says that you don't have any commits in your local
repo.

And since there is already commits in remore repo, you need to

    git pull gitori...@git.sugarlabs.org:<your-slug-here>/mainline.git

to create new local repo, then copy&paste all files you changed since
last remote commit and follow regular git worklows
(`git (add|commit|push)`)

btw, git will be much cleaner if you undestand how it works under the
hood, http://www.eecs.harvard.edu/~cduan/technical/git


> I think I've 
> studied all available sugarlabs materials about git; unfortunately, Linux 
> terminology is still largely a foreign language to me, and I often don't 
> understand what's being said. (Sorry to be so unenlightened.)
> 
> Art Hunkins
> 
> ----- Original Message ----- 
> From: "Aleksey Lim" <alsr...@member.fsf.org>
> To: "Art Hunkins" <abhun...@uncg.edu>
> Cc: <Sugar-devel@lists.sugarlabs.org>
> Sent: Thursday, February 18, 2010 6:18 PM
> Subject: Re: [Sugar-devel] Setting public key - gitorious
> 
> 
> > On Thu, Feb 18, 2010 at 04:16:13PM -0500, Art Hunkins wrote:
> >> Due to wonderful help from Aleksey, Bernie and Gary, I've been able to 
> >> both
> >> login to my gitorious account and add a valid ssh key. Thanks so much, 
> >> guys.
> >> Now all I need to do is to push updates of my projects there (here's 
> >> where
> >> I'm now hung up).
> >
> > You can follow http://wiki.sugarlabs.org/go/Activity_Team/Git tutorials
> > and http://wiki.sugarlabs.org/go/Activity_Team/Git_Tutorial#Push_project
> > in particular push your initial commit
> >
> > -- 
> > Aleksey 
> 

-- 
Aleksey
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to