[git commit master 1/1] document personal repo
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Jan 13 20:57:41 UTC 2011
commit: http://git.uclibc.org/uClibc-website/commit/?id=049262dd838ef2bbd46927afff6210f1069d0642
branch: http://git.uclibc.org/uClibc-website/commit/?id=refs/heads/master
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
developing.html | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/developing.html b/developing.html
index eea6f17..319b80d 100644
--- a/developing.html
+++ b/developing.html
@@ -200,6 +200,57 @@ access to for free.<br>
<li>web: http://uclibc.org/~username/ (this is your ~/public_html/ directory)</li>
<li>git: http://git.uclibc.org/~username/git/ (this is your ~/git/ directory)</li>
</ul>
+<p>To use a personal git repo you would do something like this:
+ When using a clone, a bare one is sufficient and please consider
+ using a shallow one (--depth 1 or something low).
+<pre>
+me at busybox ~/git $ mkdir mything1.git
+me at busybox ~/git $ cd !$
+cd mything1.git
+me at busybox ~/git/mything1.git $ git init --bare
+Initialized empty Git repository in /home/me/git/mything1.git/
+me at busybox ~/git/mything1.git $ touch git-daemon-export-ok
+me at busybox ~/git/mything1.git $
+</pre>
+Done with the server-side.
+<pre>
+me at client:/tmp$ git clone git+ssh://me@uclibc.org/~/git/mything1.git
+Cloning into mything1...
+warning: You appear to have cloned an empty repository.
+me at client:/tmp$ cd mything1/
+me at client:/tmp/mything1$ echo FOO > FOO
+me at client:/tmp/mything1$ git add FOO
+me at client:/tmp/mything1$ git commit -s -m 'do something' FOO
+[master (root-commit) 0c2bd20] do something
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+ create mode 100644 FOO
+me at client:/tmp/mything1$ git push -v --thin origin master
+Pushing to git+ssh://me@uclibc.org/~/git/mything1.git
+Counting objects: 3, done.
+Writing objects: 100% (3/3), 240 bytes, done.
+Total 3 (delta 0), reused 0 (delta 0)
+To git+ssh://me@uclibc.org/~/git/mything1.git
+ * [new branch] master -> master
+me at client:/tmp/mything1$ echo "ANOTHER" >> FOO
+me at client:/tmp/mything1$ git commit -s -m 'do something else' FOO
+[master 7010bf0] do something else
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+me at client:/tmp/mything1$ git push -v --thin
+Pushing to git+ssh://me@uclibc.org/~/git/mything1.git
+Counting objects: 5, done.
+Writing objects: 100% (3/3), 283 bytes, done.
+Total 3 (delta 0), reused 0 (delta 0)
+To git+ssh://me@uclibc.org/~/git/mything1.git
+ 0c2bd20..7010bf0 master -> master
+me at client:/tmp/mything1$
+</pre>
+Note that using "push origin master" is only required the
+first time.
+</p>
+<p>Please keep the number of repos as well as their <em>size</em>
+ down. If you need more space, use some other hosting facility.
+ Thanks for your understanding.
+</p>
<br>
If you have any other questions, feel free to post them to the list.
--
1.7.2.2
More information about the uClibc-cvs
mailing list