<h1 id="0---Create-a-repository-on-a-server">0 - Create a repository on a server<a class="anchor-link" href="#0---Create-a-repository-on-a-server">¶</a></h1><p>Examples:</p>
<h3 id="GitHub-attributes-an-address-(URL)-to-the-new-repository:">GitHub attributes an address (URL) to the new repository:<a class="anchor-link" href="#GitHub-attributes-an-address-(URL)-to-the-new-repository:">¶</a></h3><p><img src="Git/ReproUrl_GitHub.png" alt="Git"></p>
<h3 id="Alternatively,-you-may-start-with-a-local-repository-(no-central-repository):">Alternatively, you may start with a local repository (no central repository):<a class="anchor-link" href="#Alternatively,-you-may-start-with-a-local-repository-(no-central-repository):">¶</a></h3>
<h1 id="1---Clone-the-remote-repository-:-initialize-the-local-repository">1 - Clone the remote repository : initialize the local repository<a class="anchor-link" href="#1---Clone-the-remote-repository-:-initialize-the-local-repository">¶</a></h1>
<p>Git is a free software, available under Windows, Mac and Linux. Download: <a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a> .</p>
<div class=" highlight hl-bash"><pre><span></span><span class="nb">echo</span> <span class="s2">"Hello, this is line is **Markdown** text."</span> <span class="p">|</span> cat > Introduction.md
<span class="nb">echo</span> <span class="s2">"In this tutotial, we need two files. This is the second."</span> <span class="p">|</span> cat > Content.md
<h4 id="Add-to-the-"Staging-Area"">Add to the "Staging Area"<a class="anchor-link" href="#Add-to-the-"Staging-Area"">¶</a></h4><p><img src="Git/git_local_remote_falcone_mod.png" alt=""></p>
<h3 id="Do-a-"commit":-from-staging-area-to-the-repository">Do a "commit": from staging area to the repository<a class="anchor-link" href="#Do-a-"commit":-from-staging-area-to-the-repository">¶</a></h3>
<h3 id="List-differences-between-two-commits">List differences between two commits<a class="anchor-link" href="#List-differences-between-two-commits">¶</a></h3>
<h2 id="5---Revert-files-to-a-former-commit.">5 - Revert files to a former commit.<a class="anchor-link" href="#5---Revert-files-to-a-former-commit.">¶</a></h2><p>Revert to a specific commit, but without loosing the history: a new commit is created with the old version.</p>
<div class=" highlight hl-bash"><pre><span></span><span class="nb">echo</span> <span class="s2">"And another new line for Content.md :)"</span> <span class="p">|</span> cat >> Content.md