<?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: johnpaul gitonga</title>
    <description>The latest articles on DEV Community by johnpaul gitonga (@johnpaulmure).</description>
    <link>https://dev.to/johnpaulmure</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%2F4070930%2F95ceee50-e6b9-4fd9-a5d6-2cafca084b6f.png</url>
      <title>DEV Community: johnpaul gitonga</title>
      <link>https://dev.to/johnpaulmure</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnpaulmure"/>
    <language>en</language>
    <item>
      <title>Understanding Git Workflow</title>
      <dc:creator>johnpaul gitonga</dc:creator>
      <pubDate>Sun, 23 Aug 2026 08:34:05 +0000</pubDate>
      <link>https://dev.to/johnpaulmure/understanding-git-workflow-4hh7</link>
      <guid>https://dev.to/johnpaulmure/understanding-git-workflow-4hh7</guid>
      <description>&lt;p&gt;I have recently found myself learning Git as part of my Data Science upskilling journey. I consider it as a means to do configurations on your local machine with version control to track changes and managing projects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I worked on a project&lt;/strong&gt; that had me set up a folder, add new files and upload to Github. Some of the commands I used include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mkdir&lt;/strong&gt;: This is used to create a new directory e.g. &lt;strong&gt;mkdir myproject.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pwd:&lt;/strong&gt; This is used to check the parent working directory e.g in my case the parent working directory will be my Desktop where I created myproject folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cd&lt;/strong&gt;: This is used to open or go into a directory in the example above it allows me to open the &lt;strong&gt;myproject directory.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ls&lt;/strong&gt;: This is used to list the files within a directory. Within myproject folder when the command is run it will give an empty list since I had not added files into the folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;touch&lt;/strong&gt;: This is used to create a new file e.g. &lt;strong&gt;touch README.md&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;echo&lt;/strong&gt;: This is used to write into a file e.g you want to enter text into &lt;strong&gt;README.md&lt;/strong&gt;. The following text will be added to the README.md file using echo:&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;echo "#My first project for Data Analysis" &amp;gt; README.md which will title the file as &lt;strong&gt;My first project for Data Analysis.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;echo "##Things I learnt" &amp;gt;&amp;gt; README.md which will add a new sub title to the file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;NB:&lt;/strong&gt; &lt;strong&gt;echo + &amp;gt; **= overwriting the file and **echo + &amp;gt;&amp;gt;&lt;/strong&gt; = adding to the file.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;cat:&lt;/strong&gt; This command is used to read file e.g cat README.md to view the text written on README.md.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now that I was able to set up the folder with a README.md file, I was also able to upload it to Github. I used the below commands to add to a repository on Github:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git init:&lt;/strong&gt; This initializes the directory i.e myproject transforming it to a repository that will be containing the project files on Github.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git add:&lt;/strong&gt; This is for adding files to staging on Github.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git commit -m "message":&lt;/strong&gt; This saves the staged files permanently into the repository created.The git commit describes the changes being made.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By the end of running the above commands I was able to successfully create &lt;strong&gt;myproject repository on Github&lt;/strong&gt; with a README page describing the project.&lt;/p&gt;

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