Commit f67e1988040e5c53704a79fa7511dea7e40acc49
- Date: Mon Jan 21 15:06:35 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: f67e1988040e5c53704a79fa7511dea7e40acc49
- Tree SHA1: 3a5d246f629a5941cb27fe3e4500dbed3d235691
added FAQ entry on trying to clone empty repositories
Commit diff
| |   |
| 52 | 52 | |
| 53 | 53 | <div class="section"> |
| 54 | 54 | <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 /> |
| 55 | 64 | |
| 56 | 65 | <h3>How do I point my local Git repository at Gitorious?</h3> |
| 57 | 66 | <p> |
| … | … | |
| 76 | 76 | </pre> |
| 77 | 77 | and then <code>git push origin master</code> to push the code to Gitorious. |
| 78 | 78 | </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> |
| 79 | 91 | |
| 80 | 92 | <hr /> |
| 81 | 93 | |
| toggle raw diff |
--- a/app/views/site/about.html.erb
+++ b/app/views/site/about.html.erb
@@ -52,6 +52,15 @@
<div class="section">
<a name="faq"></a><h1>FAQ</h1>
+
+ <h3>I get "fatal: no matching remote head" when trying to clone a repository</h3>
+ <p>
+ 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 repositorys "push url") for info on how t push to it.
+ </p>
+
+ <hr />
<h3>How do I point my local Git repository at Gitorious?</h3>
<p>
@@ -67,6 +76,18 @@
</pre>
and then <code>git push origin master</code> to push the code to Gitorious.
</p>
+ <p>
+ You can also just run "<code>git push git@gitorious.org:tumbline/mainline.git</code>", or
+ you can setup a remote by doing the following (add --fetch to the add call to
+ get the config from above):
+ <pre>
+ git remote add origin git@gitorious.org:<em>project</em>/<em>repository.git</em>
+ # to push the master branch to the origin remote we added above:
+ git push origin master
+ # after that you can just do:
+ git push
+ </pre>
+ </p>
<hr />
|