%
#--
# Copyright (C) 2010 Juho Nieminen
If you are new to Git you should
take a look at the ProGit book which
goes through all the basics and more.
On the other hand, if you wish to learn Git more deeply, we recommend you to
read Git From Bottom Up (pdf).
Most likely the repository you're trying to clone is empty, and the error
message is git's friendly way of telling you that. See below (or by clicking
"more info" next to the repository's "push url") for info on how to push to it.
Easiest way is to put something like the following in your FAQ
What is Git?
I get "fatal: no matching remote head" when trying to clone a repository
How do I point my local Git repository at YouSource?
.git/config
file of the repository you wish to push:
[remote "origin"]
url = <%= GitoriousConfig['gitorious_user'] -%>@<%= GitoriousConfig['gitorious_host'] -%>:project/repository.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
and then git push origin master
to push the code to YouSource.
You can also just run "git push <%= GitoriousConfig['gitorious_user'] -%>@<%= GitoriousConfig['gitorious_host'] -%>:tumbline/mainline.git
", or
you can setup a remote by doing the following (add --fetch to the add call to
get the config from above):
git remote add origin <% GitoriousConfig['gitorious_user'] -%>@<%= GitoriousConfig['gitorious_host'] -%>:project/repository.git # to push the master branch to the origin remote we added above: git push origin master # after that you can just do: git push
git version 1.5.5.6
We use Gravatar.com for user avatars. If you haven't registered on YouSource, someone else may have pushed commits with you name and/or email in them which we in turn hash and send to to Gravatar.com to find an avatar image. If you want it changed you should either register and upload an avatar of your own, or go to Gravatar.com and change it.
When you push to a Git repository, your public key is how we authenticate you and check if have the permissions required to do a commit to a given repository
The recommended way to use Git on Windows is the
<%= link_to "msysGit", "http://code.google.com/p/msysgit/" -%> version. It comes bundled
with minimal Cygwin support. When you finish installing it, you will have a "Git Bash"
icon in your desktop. Double click to open it and now you can use known Linux-like
commands, such as "ssh-keygen -t rsa"
. Just press 'Return' in every question
it asks and you will finally have your pair of keys under ".ssh". For example, type
"cat ~/.ssh/id_rsa.pub"
. Thats's the public key that you are required to
copy and paste into your account on YouSource.