<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Part 1 — Understanding Git on Git Getting Started!</title><link>https://oripekelman.github.io/git-training/docs/1-understanding-git/</link><description>Recent content in Part 1 — Understanding Git on Git Getting Started!</description><generator>Hugo</generator><language>en</language><atom:link href="https://oripekelman.github.io/git-training/docs/1-understanding-git/index.xml" rel="self" type="application/rss+xml"/><item><title>What is Git?</title><link>https://oripekelman.github.io/git-training/docs/what-is-git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/what-is-git/</guid><description>&lt;h1 id="what-is-git"&gt;
 What is Git?
 &lt;a class="anchor" href="#what-is-git"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Hello and welcome. This course begins with a very simple observation: if you want to have a job in IT, no matter which one, knowing Git is not optional; Git is used everywhere.&lt;/p&gt;
&lt;p&gt;First, a word on the subject, then a little explanation on the &amp;ldquo;why&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;At the highest level, we can say that Git is a software that allows saving code. This is the absolute standard in the field: the one and only way to do your ctrl-s (or cmd-s).&lt;/p&gt;</description></item><item><title>Git and its ecosystem</title><link>https://oripekelman.github.io/git-training/docs/git-ecosystem/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/git-ecosystem/</guid><description>&lt;h1 id="git-and-its-ecosystem"&gt;
 Git and its ecosystem
 &lt;a class="anchor" href="#git-and-its-ecosystem"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;To be able to do all these wonders, Git had to reach a certain level of complexity. One could spend years learning and mastering its idiosyncrasies. Git has many layers and there are many ways to use it: the majority of its users will use the command line (and we will encourage you in this way), but others use it with the many graphical software (GUI, for Graphical User Interface) that exist, through integrated development environments (IDEs), or even simply by using their web browser through one of the many source code hosting systems on the web (first GitHub, the major reference we are going to talk about again, but also GitLab, Bitbucket, Codeberg or a Forgejo you host yourself).&lt;/p&gt;</description></item><item><title>First steps, first Git commands</title><link>https://oripekelman.github.io/git-training/docs/first-git-commands/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/first-git-commands/</guid><description>&lt;h1 id="first-steps-first-git-commands"&gt;
 First steps, first Git commands
 &lt;a class="anchor" href="#first-steps-first-git-commands"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;There you go, now you need to have a little bit of context. As we told you, Git is software; it would therefore have to be installed to use it. But we&amp;rsquo;re nice and we promised it was going to be easy. So for the moment you can do all your exercises without installing anything, but one moment or another, you will have to be brave. The more adventurous are already invited to visit the chapter 
 &lt;a href="https://oripekelman.github.io/git-training/docs/git-install/" title="Installing and configuring Git"&gt;Installing and configuring Git&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Let's save our work!</title><link>https://oripekelman.github.io/git-training/docs/save-work-with-git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/save-work-with-git/</guid><description>&lt;h1 id="lets-save-our-work"&gt;
 Let&amp;rsquo;s save our work!
 &lt;a class="anchor" href="#lets-save-our-work"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;We have chosen to do everything very, but very slowly by explaining each step of the way to you. But you were also promised simplicity. So.. let&amp;rsquo;s imagine we have a project, not yet under Git control (let&amp;rsquo;s call it &lt;code&gt;my_existing_project&lt;/code&gt;) that contains our source code files. How to get them under Git control simply and quickly?&lt;/p&gt;
&lt;p&gt;Nothing&amp;rsquo;s easier:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;cd ~/projects/my_existing_project
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;git init
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;git add .
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;git commit -m&amp;#39;First commit&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol&gt;
&lt;li&gt;We change the current directory in our project.&lt;/li&gt;
&lt;li&gt;We initialize the repository with &lt;code&gt;git init&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git add&lt;/code&gt; tells git to add all files in the current directory, including those in subdirectories (with the &lt;code&gt;.&lt;/code&gt; after the command).&lt;/li&gt;
&lt;li&gt;Then we &lt;strong&gt;commit&lt;/strong&gt; with a message.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;But, we promised detail, so let&amp;rsquo;s go back to our original project which is just an empty Git repository and try to understand more in depth what happened. So if you&amp;rsquo;ve gone elsewhere let&amp;rsquo;s go back to:&lt;/p&gt;</description></item><item><title>Inside the repository, inside the commit</title><link>https://oripekelman.github.io/git-training/docs/inside-git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/inside-git/</guid><description>&lt;h1 id="inside-the-repository-inside-the-commit"&gt;
 Inside the repository, inside the commit
 &lt;a class="anchor" href="#inside-the-repository-inside-the-commit"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;The &lt;strong&gt;commit&lt;/strong&gt; is the most interesting object of Git, our main tool to build a history of our code, to name versions, to collaborate with others.&lt;/p&gt;
&lt;p&gt;Each time we type the command &lt;code&gt;git commit&lt;/code&gt; we create a new record, a new stage point.&lt;/p&gt;
&lt;h2 id="but-what-exactly-is-a-commit"&gt;
 But what exactly is a &lt;strong&gt;commit&lt;/strong&gt;?
 &lt;a class="anchor" href="#but-what-exactly-is-a-commit"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;To fully understand &lt;strong&gt;commit&lt;/strong&gt; we need to take a small detour and encounter two other concepts. The &lt;strong&gt;blob&lt;/strong&gt; which is the content of our files and the &lt;strong&gt;tree&lt;/strong&gt; which are the successive tree structures of files.&lt;/p&gt;</description></item><item><title>We know how to save... but how to modify? to delete ? to cancel?</title><link>https://oripekelman.github.io/git-training/docs/modify-delete-files-with-git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/modify-delete-files-with-git/</guid><description>&lt;h1 id="we-know-how-to-save-but-how-to-modify-to-delete--to-cancel"&gt;
 We know how to save&amp;hellip; but how to modify? to delete ? to cancel?
 &lt;a class="anchor" href="#we-know-how-to-save-but-how-to-modify-to-delete--to-cancel"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Let&amp;rsquo;s remember two important things: the &lt;strong&gt;commit&lt;/strong&gt; points to a &lt;strong&gt;tree-id&lt;/strong&gt;, so to a tree structure and file content in a specific state, and it also points to &lt;strong&gt;parents&lt;/strong&gt;, so to previous &lt;strong&gt;commit&lt;/strong&gt;s (which naturally point to &lt;strong&gt;tree-id&lt;/strong&gt;s of their own). Deleting is therefore simple: if a file is in the &lt;strong&gt;tree&lt;/strong&gt; of the parent &lt;strong&gt;commit&lt;/strong&gt; but not in the &lt;strong&gt;tree&lt;/strong&gt; of our current &lt;strong&gt;commit&lt;/strong&gt;, then that file has been deleted.&lt;/p&gt;</description></item><item><title>Playing with our revisions</title><link>https://oripekelman.github.io/git-training/docs/play-with-git-revisions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://oripekelman.github.io/git-training/docs/play-with-git-revisions/</guid><description>&lt;h1 id="playing-with-our-revisions"&gt;
 Playing with our revisions
 &lt;a class="anchor" href="#playing-with-our-revisions"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Now we have learned how to create versions of our code. Did you change a file? We type &lt;code&gt;git commit -am'Added some CSS styles for header'&lt;/code&gt;. Here is a new revision just created.&lt;/p&gt;
&lt;h2 id="view-list-of-revisions-git-log"&gt;
 View list of revisions: &lt;code&gt;git log&lt;/code&gt;
 &lt;a class="anchor" href="#view-list-of-revisions-git-log"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;We can now type &lt;code&gt;git log&lt;/code&gt;; this very useful command lists all the changes in order, the most recent first.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-console" data-lang="console"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;commit 49c6166b1deb64004016a2ffe1c1b75eeadc4a4c (HEAD -&amp;gt; master)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:25:44 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Rename files to media
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt;commit 17baa688a633434ea561c8e4ada42d1f9db6c058
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:22:10 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Remove license file
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt;commit 13688773276850af857c23ef9125d1f19a0f92f1
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:17:22 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Add .gitkeep so files will be added to the repository
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt;commit cabdb6f9270182945008cee8acb9871dcf9fc03f
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:15:42 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Adding a license file
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt;commit 72c4234bd6c3c16c3b567b851e2c58cedbb019be
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:10:30 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Add the list of commands we learned today.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt;commit 0ab682bba608f1b175dd716f8f62de4d462f604f
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Author: Ori Pekelman &amp;lt;ori+git-training@pekelman.com&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;Date: Mon Feb 2 06:06:51 2026 +0100
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;span class="err"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="err"&gt;&lt;/span&gt;&lt;span class="go"&gt; Added readme.md
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here we have a nice list of everything that happened, all six commits we have made since the beginning. And if we look closely there is nothing there that should surprise us&amp;hellip; &lt;strong&gt;commit&lt;/strong&gt; and its &lt;strong&gt;sha&lt;/strong&gt; then the author and finally the date and our commit message. Only one thing got added there, in the first line: &lt;strong&gt;(HEAD -&amp;gt; master)&lt;/strong&gt;. We&amp;rsquo;ll explain that a bit below. For now let&amp;rsquo;s continue&amp;hellip;&lt;/p&gt;</description></item></channel></rss>