<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Git</title><link>https://sourceforge.net/p/microlua/wiki/Git/</link><description>Recent changes to Git</description><atom:link href="https://sourceforge.net/p/microlua/wiki/Git/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 28 Jun 2013 11:32:19 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/microlua/wiki/Git/feed" rel="self" type="application/rss+xml"/><item><title>Git modified by Reylak</title><link>https://sourceforge.net/p/microlua/wiki/Git/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -14,7 +14,7 @@
 Clone the repository
 ====================

-Following your rights on the repository, you will either use the read-only URL 'git://git.code.sf.net/p/microlua/uLua' or the read-write URL 'ssh://______@git.code.sf.net/p/microlua/uLua' (do not forget to _replace your name within the URL).
+Following your rights on the repository, you will either use the read-only URL 'git://git.code.sf.net/p/microlua/uLua' or the read-write URL 'ssh://______@git.code.sf.net/p/microlua/uLua' (do not forget to _replace your name_ within the URL).

     ::bash
     cd /path/to/my/global/MicroLua/dir/
@@ -113,4 +113,4 @@

 should be enough.

-If you can't commit to the global repository, you can publish a patch by saving the result of `git diff` between the last global commit and yours.
+If you can't commit to the global repository, you can publish a patch by saving the result of `git diff` between the last global commit and yours. You can also ask an administrator for commit rights.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reylak</dc:creator><pubDate>Fri, 28 Jun 2013 11:32:19 -0000</pubDate><guid>https://sourceforge.net42a284afab3fae4f8c2952234b010a5723f16695</guid></item><item><title>Git modified by Reylak</title><link>https://sourceforge.net/p/microlua/wiki/Git/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -3,4 +3,114 @@
 [TOC]

-___to be completed___
+Installation
+============
+
+On Linux Git is simply a package often provided in the official repositories and could even be already available on your computer. Simply try `$ git --version` to be sure.
+
+On Windows, I believe the best way to get Git is [msysGit](http://code.google.com/p/msysgit/) which provides a command line interface similar to what is done under Linux (actually thanks to MSys).
+
+
+Clone the repository
+====================
+
+Following your rights on the repository, you will either use the read-only URL 'git://git.code.sf.net/p/microlua/uLua' or the read-write URL 'ssh://______@git.code.sf.net/p/microlua/uLua' (do not forget to _replace your name within the URL).
+    
+    ::bash
+    cd /path/to/my/global/MicroLua/dir/
+    mkdir repo         # or something else
+    cd repo            # change it to what you did just above
+    
+    # If you have read-only access
+    git clone git://git.code.sf.net/p/microlua/uLua .
+    # Or if you have read-write access
+    git clone ssh://______@git.code.sf.net/p/microlua/uLua .
+
+Now Git is downloading the whole history, so it can take some time.
+
+
+Pulling the latest version
+==========================
+
+This is achieved by using:
+
+    :::bash
+    git pull
+
+This command actually performs:
+
+    :::bash
+    git fetch
+    git merge
+
+Where `fetch` fetches the new references and files and `merge` merges them onto the current working tree, hoping there won't be any conflict. Otherwise, it's up to you to merge this by a way or the other.  
+There should actually be no conflict as the modifications you'd make should be in another branch than 'master'.
+
+Making changes
+==============
+
+Create a new branch
+-------------------
+
+As said above, you should only make changes on another branch and then merge the changes to the 'master' branch.
+
+This command creates a new branch called "myChanges" and switch the working tree to it.
+
+    :::bash
+    git checkout -b myChanges
+
+Now you can simply edit the code.
+
+See what changed
+----------------
+
+Git provides a global summary of what changed in the tree:
+
+    :::bash
+    git status        # you may have the shortcut 'git st'
+
+And to check what changed on a particular file:
+
+    :::bash
+    git diff /path/to/file        # running diff without a path displays diff for every file
+
+Apply the changes
+-----------------
+
+Once you are happy with what has changed, you can apply the modifications by _committing_.
+
+First, you add the changes:
+
+    :::bash
+    git add /path/to/file1 /path/to/file2
+    # Or to add every changed file
+    git add -A
+
+Then you commit (on a side branch of course) with:
+
+    :::bash
+    git commit
+
+This will open a text editor (usually [Vim](http://www.vim.org/) if installed) in which you can add a commit message explaining what was done. The first line is a shorter summary.
+
+When the whole modification project is done, you may merge it to the main branch 'master'.
+
+    :::bash
+    # First, update the branch
+    git pull
+    # Then, merge your own branch into it
+    git merge myChanges
+
+In case of conflict, resolve them and commit the merge.
+
+Commit to the central repository
+--------------------------------
+
+If you have write access, a simple
+
+    :::bash
+    git push
+
+should be enough.
+
+If you can't commit to the global repository, you can publish a patch by saving the result of `git diff` between the last global commit and yours.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reylak</dc:creator><pubDate>Thu, 13 Jun 2013 15:09:04 -0000</pubDate><guid>https://sourceforge.net0c203bcaac24b3428ca8de8764facf772b33c4e0</guid></item><item><title>Git modified by Reylak</title><link>https://sourceforge.net/p/microlua/wiki/Git/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This will explain how to use Git to work on MicroLua's source code.&lt;/p&gt;
&lt;div class="toc"&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;to be completed&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reylak</dc:creator><pubDate>Wed, 12 Jun 2013 08:58:51 -0000</pubDate><guid>https://sourceforge.net7ad99975fcf5a1573b734cecbc2c66f141ecc9fd</guid></item></channel></rss>