First, you install git using your favorite package manager. Then:
-<code>
+<pre>
git clone git://git.xonotic.org/xonotic/xonotic.git
cd xonotic
sh all-update.sh
-</code>
+</pre>
After that, you have a working checkout of the repository.
To cleanly check out then, you would do:
-<code>
+<pre>
git clone ssh://xonotic@git.xonotic.org/xonotic.git
cd xonotic
sh all-update.sh
-</code>
+</pre>
If you already have a checkout, you would do:
-<code>
+<pre>
git config remote.origin.url ssh://xonotic@git.xonotic.org/xonotic.git
sh all-update.sh
-</code>
+</pre>
After that, you can write to the reposiotry using the usual git commands (commit, push).