<% #-- # Copyright (C) 2010 Juho Nieminen # Copyright (C) 2008 Johan Sørensen # Copyright (C) 2008 David Chelimsky # Copyright (C) 2008 Jonas Fonseca # Copyright (C) 2008 David Aguilar # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %>

FAQ

What is Git?

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).


I get "fatal: no matching remote head" when trying to clone a repository

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.


How do I point my local Git repository at YouSource?

Easiest way is to put something like the following in your .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
  


What version of Git is YouSource running?

git version 1.5.5.6


How did my avatar/mugshot end up on this site? I'm not even registered!

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.


Why do I need to upload my public SSH key?

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


I have Windows. How do I generate the required SSH key?

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.

<% content_for :sidebar do -%> <% end -%>