Commit f67e1988040e5c53704a79fa7511dea7e40acc49

added FAQ entry on trying to clone empty repositories

Commit diff

app/views/site/about.html.erb

 
5252
5353<div class="section">
5454 <a name="faq"></a><h1>FAQ</h1>
55
56 <h3>I get "fatal: no matching remote head" when trying to clone a repository</h3>
57 <p>
58 Most likely the repository you're trying to clone is empty, and the error
59 message is git's friendly way of telling you that. See below (or by clicking
60 "more info" next to repositorys "push url") for info on how t push to it.
61 </p>
62
63 <hr />
5564
5665 <h3>How do I point my local Git repository at Gitorious?</h3>
5766 <p>
7676 </pre>
7777 and then <code>git push origin master</code> to push the code to Gitorious.
7878 </p>
79 <p>
80 You can also just run "<code>git push git@gitorious.org:tumbline/mainline.git</code>", or
81 you can setup a remote by doing the following (add --fetch to the add call to
82 get the config from above):
83 <pre>
84 git remote add origin git@gitorious.org:<em>project</em>/<em>repository.git</em>
85 # to push the master branch to the origin remote we added above:
86 git push origin master
87 # after that you can just do:
88 git push
89 </pre>
90 </p>
7991
8092 <hr />
8193
toggle raw diff