<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hellen A.</title>
    <description>The latest articles on DEV Community by Hellen A. (@hellen_atieno_92d1bd37d6d).</description>
    <link>https://dev.to/hellen_atieno_92d1bd37d6d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4071799%2Fc425ce0c-97d7-49c2-bb97-6aa6cce90fda.png</url>
      <title>DEV Community: Hellen A.</title>
      <link>https://dev.to/hellen_atieno_92d1bd37d6d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hellen_atieno_92d1bd37d6d"/>
    <language>en</language>
    <item>
      <title>A Beginner's Workflow to Git</title>
      <dc:creator>Hellen A.</dc:creator>
      <pubDate>Sat, 22 Aug 2026 21:21:00 +0000</pubDate>
      <link>https://dev.to/hellen_atieno_92d1bd37d6d/a-beginners-workflow-to-git-la3</link>
      <guid>https://dev.to/hellen_atieno_92d1bd37d6d/a-beginners-workflow-to-git-la3</guid>
      <description>&lt;p&gt;Hearing Git and Github for the first time may seem confusing but let me simplify the basics for you. &lt;br&gt;
Think of Git as the vehicle that lets you keep a diary of your work. GitHub is just one destination you can drive to if you want to share that diary with others.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnj7a01g5m84wuzaxcwa3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnj7a01g5m84wuzaxcwa3.png" alt="Git and Github diagram" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;According to Wikipedia, &lt;a href="https://en.wikipedia.org/wiki/Git" rel="noopener noreferrer"&gt;Git &lt;/a&gt;is a distributed version control software system that is capable of managing versions of source code or data. &lt;a href="https://en.wikipedia.org/wiki/GitHub" rel="noopener noreferrer"&gt;Github &lt;/a&gt;on the other hand is a proprietary developer platform that allows developers to create, store, manage, and share their code.&lt;/p&gt;

&lt;p&gt;When using Git and Github as a beginner, there are key things to understand. First of all, there are 4 locations that we should mention.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Working Directory&lt;/li&gt;
&lt;li&gt;Staging Area&lt;/li&gt;
&lt;li&gt;Local Repository&lt;/li&gt;
&lt;li&gt;Remote Repository&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's go over them as we dissect over the commands we need to use. &lt;/p&gt;

&lt;h2&gt;
  
  
  1. Working Directory
&lt;/h2&gt;

&lt;p&gt;This is the place in your local machine where your code is stored. To move your code from here we use,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git add .&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The dot (.) means 'this directory'. The command adds all the code in the current directory to the staging area.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Staging Area
&lt;/h2&gt;

&lt;p&gt;This contains the data that has been added from your working directory. To move to the next stage, we take a snapshot of this data. While doing this, we add a message that defines what the changes in the code are about.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m 'message'&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Local Repository
&lt;/h2&gt;

&lt;p&gt;This area contains the snapshot of the code. Before pushing for the first time, you need to tell Git where your remote repository is. You do this once with,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote add origin &amp;lt;url&amp;gt;&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;From here we use the below command to the next location.&lt;br&gt;
&lt;code&gt;git push&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Remote Repository
&lt;/h2&gt;

&lt;p&gt;This is where the pushed code stays.&lt;/p&gt;

&lt;p&gt;The diagram below represents the workflow.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuylrcu6r2f2xe0t719vw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuylrcu6r2f2xe0t719vw.png" alt="The flow diagram of the 4 Areas" width="800" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also pull your data from the Remote Repository to your Working directory. You use the below command,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git pull&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This command puts together 2 commands: &lt;code&gt;git fetch&lt;/code&gt; and &lt;code&gt;git merge&lt;/code&gt;. The former gets the data while the latter merges it with what is in your working directory.&lt;/p&gt;

&lt;p&gt;As the diagram below shows, &lt;code&gt;git pull&lt;/code&gt; is really &lt;code&gt;fetch&lt;/code&gt; + &lt;code&gt;merge&lt;/code&gt;combined&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1uufib5tuzndamza2php.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1uufib5tuzndamza2php.png" alt="Git Pull, includes fetch and merge" width="800" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The next time you work with Git, I hope you are able to understand more clearly the next steps and environment that you are in. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P.S.&lt;/strong&gt; Git isn't the only version control system out there, and GitHub isn't the only place to host your code, alternatives include Mercurial, Subversion (SVN), and Perforce for version control, and GitLab, Bitbucket, and SourceForge for hosting.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Happy Learning!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
    </item>
  </channel>
</rss>
