<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 David Chelimsky # Copyright (C) 2008 Jonas Fonseca # Copyright (C) 2008 David Aguilar # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2008 Johan Sørensen # # 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

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

Most likely the repository you are 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.

<% if Gitorious::Configuration.get("ssh_fingerprint") %>

What is the SSH key fingerprint of the server I am pushing to?

The SSH key fingerprint of the <%= Gitorious.host %> server is:
<%= Gitorious::Configuration.get("ssh_fingerprint") %>

<% else %> <% end %>

How do I point my local Git repository at Gitorious?

Easiest way is to put something like the following in your .git/config file of the repository you wish to push:

[remote "origin"]
      url = <%= Gitorious.ssh_daemon.url("project/repository.git").http_safe %>
      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 Gitorious.

You can also just run "git push <%= Gitorious.ssh_daemon.url('tumbline/mainline.git').html_safe %>", 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 <%= Gitorious.ssh_daemon.url("project/repository.git").http_safe %>
      # 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 Gitorious running?

<%= Gitorious.git_version %>

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

We use Gravatar.com for user avatars. If you have not registered on Gitorious, 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 is the public key that you are required to copy and paste into your account on Gitorious.

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