<?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: Irene Gichobi</title>
    <description>The latest articles on DEV Community by Irene Gichobi (@irene_gichobi).</description>
    <link>https://dev.to/irene_gichobi</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%2F4071744%2F92f0ae6c-a3ad-4aa5-81d6-37f15f432e4f.png</url>
      <title>DEV Community: Irene Gichobi</title>
      <link>https://dev.to/irene_gichobi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/irene_gichobi"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From A Local Folder To GitHub Using Git and SSH</title>
      <dc:creator>Irene Gichobi</dc:creator>
      <pubDate>Sat, 22 Aug 2026 17:52:11 +0000</pubDate>
      <link>https://dev.to/irene_gichobi/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-5fn1</link>
      <guid>https://dev.to/irene_gichobi/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-5fn1</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Starting my journey into data science and analytics has introduced me to many new tools and concepts. One of the first things that we have learnt so far is &lt;strong&gt;Git&lt;/strong&gt; and &lt;strong&gt;Github&lt;/strong&gt;.&lt;br&gt;
At first, it seemed so difficult and confusing. But after being taken through the process and researching on my own I realized that the basic workflow is very straightforward.&lt;br&gt;
In this article I’ll share my experience on how I took a project &lt;strong&gt;from a local folder on my computer and pushed it to GitHub using Git and SSH&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Git and GitHub
&lt;/h2&gt;

&lt;p&gt;Git is a version control system which runs on your computer and keeps track of changes made to your project. It also allows you to keep a history of the changes made and is usually installed on your local computer.&lt;br&gt;
GitHub is an online service where Git repositories are stored. It stores your repository online and makes it possible to share and collaborate on projects.&lt;br&gt;
Repository is a project being tracked by Git.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements Needed
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create a GitHub Account&lt;/li&gt;
&lt;li&gt;Install Git on your local computer then:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Configure Git username and email&lt;/li&gt;
&lt;li&gt;Generate SSH Key&lt;/li&gt;
&lt;li&gt;Add SSH public Key to GitHub&lt;/li&gt;
&lt;li&gt;Test GitHub SSH Authentication&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Creating A Local Project Folder
&lt;/h2&gt;

&lt;p&gt;I started by opening GitBash on my laptop and then followed the following steps:&lt;br&gt;
• I ran &lt;code&gt;ls&lt;/code&gt; to show a detailed list of the files and folders inside my directory.&lt;br&gt;
• I then ran &lt;code&gt;cd desktop&lt;/code&gt; to move into the desktop folder.&lt;br&gt;
&lt;code&gt;cd&lt;/code&gt; means change directory&lt;br&gt;
• I ran &lt;code&gt;pwd&lt;/code&gt; to check the folder I was currently working in to ensure that it was desktop.&lt;br&gt;
&lt;code&gt;pwd&lt;/code&gt; means print working directory &lt;br&gt;
Our project was called &lt;em&gt;Kenyan-Hospital-Health-Records&lt;/em&gt;, so I followed the following steps to create a folder.&lt;br&gt;
•I ran &lt;code&gt;mkdir Kenyan-Hospital-Health-Records-Analysis&lt;/code&gt; to create a folder. &lt;code&gt;mkdir&lt;/code&gt; means make directory and is used to create a new folder&lt;br&gt;
• I then ran &lt;code&gt;cd Kenyan-Hospital-Health-Records-Analysis&lt;/code&gt; to move into the new folder. &lt;code&gt;cd&lt;/code&gt; means change directory and is used to move from one folder to another.&lt;br&gt;
• I then ran &lt;code&gt;mkdir Data&lt;/code&gt; to create a folder under the Kenya-Hospital-Health-Records-Analysis folder. &lt;br&gt;
• I also ran &lt;code&gt;touch README.md&lt;/code&gt; to create a &lt;em&gt;README file&lt;/em&gt;.  &lt;em&gt;README&lt;/em&gt; explains the entire project i.e. what the project entails, the data set used, tools used, what each folder contains and important findings.&lt;br&gt;
&lt;strong&gt;Step 2: Copying The File From Downloads To The Folder&lt;/strong&gt;&lt;br&gt;
The data was shared through WhatsApp, so I downloaded the file and copied it to the project folder that I had created. To copy the data from downloads to the project folder I used the below command in gitbash.&lt;br&gt;
&lt;code&gt;Cp ~/Downloads/Kenyan_Hospital_Health_Records.xlsx ~/desktop/Kenyan_Hospital_Health_Records/data.&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Step 3. Adding and Displaying Text On README.md&lt;/strong&gt;&lt;br&gt;
To add text to the &lt;em&gt;README&lt;/em&gt; file I used the command &lt;code&gt;echo “# Kenyan Hospital Health Records Analysis”&amp;gt; README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;echo&lt;/code&gt; means print text, &lt;code&gt;#&lt;/code&gt;is a markdown syntax for a heading and &lt;code&gt;&amp;gt;&lt;/code&gt; redirects the text into a file.&lt;br&gt;
Then I ran the command &lt;code&gt;echo “##Project Overview”&amp;gt;&amp;gt;README.md&lt;/code&gt;.  I used &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; to avoid replacing the existing files content.&lt;br&gt;
I then ran &lt;code&gt;cat README.md&lt;/code&gt; to display the contents of the &lt;em&gt;README file&lt;/em&gt;. &lt;code&gt;Cat&lt;/code&gt; displays the raw contents of the file and &lt;code&gt;README.md&lt;/code&gt; is the markdown file you are asking to view.&lt;br&gt;
To confirm the contents of the data folder, I ran the &lt;code&gt;ls Data&lt;/code&gt; command.&lt;br&gt;
&lt;strong&gt;Step 4. Connecting Local Folder and GitHub Repository&lt;/strong&gt;&lt;br&gt;
After creating my folder, I ran the &lt;code&gt;git init&lt;/code&gt; command to initialize the &lt;em&gt;Kenyan Hospital Health Records Analysis&lt;/em&gt; directory as a repository. &lt;code&gt;git init&lt;/code&gt; is used to turn a normal local folder into a git repository. Git then creates a hidden. git directory, which is used to track changes and store the repository's history.&lt;br&gt;
To check the hidden directory, I ran the &lt;code&gt;ls -la&lt;/code&gt; command.&lt;br&gt;
Next, I checked the status of my repository by running the command &lt;code&gt;git status&lt;/code&gt;. It helps me understand what is happening in my repository by showing me what files git is tracking, which files have been modified and which files are untracked.&lt;br&gt;
Then I ran the &lt;code&gt;git add.&lt;/code&gt; command. This command is used to stage files and changes so they can be included in the next commit.&lt;br&gt;
Finally, I ran the &lt;code&gt;git commit -m “ Add  Kenyan-Hospital-Health-Records-Analysis”&lt;/code&gt;command. A &lt;code&gt;commit&lt;/code&gt;is a snapshot of the changes that you want Git to remember and &lt;code&gt;-m&lt;/code&gt;allows you to add a message describing the commit.&lt;br&gt;
The next step was linking the local folder to the repository. This involved the following steps:&lt;br&gt;
•I logged into my github account and created a new repository. Gave my repository a name, description and then created the repository.&lt;br&gt;
•I then copied the &lt;strong&gt;SSH Key&lt;/strong&gt; from github and used it to link my local repository to the Github repository by running the command: &lt;code&gt;git remote add origin git@github.com: my username/ Kenyan-Health-Records-Analysis.git&lt;/code&gt;&lt;br&gt;
•To confirm the connection, I ran the command &lt;code&gt;git remove -v&lt;/code&gt;&lt;br&gt;
•To push my project to Github I ran the command &lt;code&gt;git branch -M main&lt;/code&gt; to make sure my &lt;em&gt;main branch&lt;/em&gt; is called &lt;em&gt;main&lt;/em&gt;.&lt;br&gt;
•Then finally I ran &lt;code&gt;git push -u origin main&lt;/code&gt; to push my project to github.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This project has taught me the difference between Git and GitHub. It has also taught me that GitHub isn’t just a place to upload files. It allows me to track my work,manage different versions of my project and build a portfolio that I can share with other people. I have learnt that it is okay not to understand everything immediately. This is my first project and  there is still so much to learn about Git and GitHub but it is a very important step in my journey into data science and analytics.&lt;/p&gt;

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