<divid="sousliens"><ul><li><spanclass="active"title="You're here.">Git for n00b <spanclass="nicer">»</span></span></li><li><ahref="/Scratch/en/blog/2009-11-12-Git-for-n00b/Git-pour-quoi-faire/">Git for n00b <spanclass="nicer">»</span></a></li><li><ahref="/Scratch/en/blog/2009-11-12-Git-for-n00b/conf-et-install/">Git for n00b <spanclass="nicer">»</span></a></li><li><ahref="/Scratch/en/blog/2009-11-12-Git-for-n00b/c-est-parti-pour-l-aventure/">Git for n00b <spanclass="nicer">»</span></a></li><li><ahref="/Scratch/en/blog/2009-11-12-Git-for-n00b/comprendre/">Git for n00b <spanclass="nicer">»</span></a></li><li><ahref="/Scratch/en/blog/2009-11-12-Git-for-n00b/commandes-avancees/">Git for n00b <spanclass="nicer">»</span></a></li></ul></div>
<p>A detailed tutorial of <ahref="http://git-scm.org">Git</a> for people knowing very few about versions systems. You’ll understand utility of such program and how we use modern version control system. I try to stay as pragmatic as possible.</p>
</div>
</div>
<divclass="corps">
<h1class="first"id="begin-with-conclusion">Begin with conclusion</h1>
<p>Here is the list of sufficient and necessary command to use <ahref="http://git-scm.org"title="Git">Git</a>. There is very few. It is normal not to understand immediately but it is to gives you an idea. Even if this article is long, 95% of <ahref="http://git-scm.org"title="Git">Git</a> usage is in these 7 commands:</p>
<spanclass="Comment"><spanclass="Comment">#</span> get modifications from other</span>
git pull
<spanclass="Comment"><spanclass="Comment">#</span> read what was done</span>
git log
<spanclass="Comment"><spanclass="Comment">#</span> Make local changes to files </span>
hack, hack, hack...
<spanclass="Comment"><spanclass="Comment">#</span> list the modified files</span>
git status
<spanclass="Comment"><spanclass="Comment">#</span> show what I've done</span>
git diff
<spanclass="Comment"><spanclass="Comment">#</span> tell git to version a new file</span>
git add new/file
<spanclass="Comment"><spanclass="Comment">#</span> commit its own modifications </span>
<spanclass="Comment"><spanclass="Comment">#</span> to its local branch</span>
git commit -a -m <spanclass="String"><spanclass="String">"</span>Fix bug #321<spanclass="String">"</span></span>
<spanclass="Comment"><spanclass="Comment">#</span> send local modifications to other</span>
git push
</pre></div>
<p>This article is written for people knowing very few about versionning systems. It is also written for those who had didn’t followed progress since CVS or subversion (SVN). This is why, in a first time I’ll explain quickly which are the goal of such systems. Secondly, I’ll explain how to install and configure <ahref="http://git-scm.org"title="Git">Git</a>. Then, I give the command for each feature a <abbrtitle="Decentralized Concurent Versions System">DCVS</abbr> must have.</p>