<?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: Jack Kisutsa</title>
    <description>The latest articles on DEV Community by Jack Kisutsa (@jkisutsa).</description>
    <link>https://dev.to/jkisutsa</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%2F4087193%2F8eccedfb-a5e1-49c5-9bf7-12a3bdc811c4.png</url>
      <title>DEV Community: Jack Kisutsa</title>
      <link>https://dev.to/jkisutsa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jkisutsa"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>Jack Kisutsa</dc:creator>
      <pubDate>Sun, 23 Aug 2026 09:41:03 +0000</pubDate>
      <link>https://dev.to/jkisutsa/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-27nh</link>
      <guid>https://dev.to/jkisutsa/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-27nh</guid>
      <description>&lt;h2&gt;
  
  
  My First GitHub Project: From a Local Folder to GitHub Using Git and SSH
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;This week I learned how to use &lt;strong&gt;Git, Git Bash, GitHub and setting up SSH Keys&lt;/strong&gt;. Before this, I knew about GitHub but I did not really understand how a project moves from a folder on my computer to GitHub.&lt;/p&gt;

&lt;p&gt;A simple way I now understand the relationship is:&lt;/p&gt;

&lt;p&gt;Git manages the history of my project while GitHub provides an online home for the project.&lt;/p&gt;

&lt;p&gt;In this article, I will explain the steps I followed to create a simple project locally and push it to GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating My Project
&lt;/h2&gt;

&lt;p&gt;I started by creating a folder for my project using Git Bash.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;Kenya-Hospital-Records-Analysis
&lt;span class="nb"&gt;cd &lt;/span&gt;Kenya-Hospital-Records-Analysis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside the folder, I created a &lt;code&gt;README.md&lt;/code&gt; file and a folder called &lt;code&gt;data&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;My project looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Kenya-Hospital-Records-Analysis/
├── README.md
└── data/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;README.md&lt;/code&gt; file is where I can explain what my project is about while the &lt;code&gt;data&lt;/code&gt; folder can be used to store datasets.&lt;/p&gt;

&lt;p&gt;In the data folder i uploaded an excel file called &lt;code&gt;Kenyan_Hospital_Health_Records&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use Git
&lt;/h2&gt;

&lt;p&gt;The next step was to make Git start tracking my project. I did this using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I then used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This helped me see which files Git was tracking and which files had not yet been added.&lt;/p&gt;

&lt;p&gt;To add my files, I used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I then saved the changes to Git using a commit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One thing I learned is that a commit is like saving a checkpoint of my project. The commit message helps explain what changes I made.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting Git to GitHub while generating SSH Keys
&lt;/h2&gt;

&lt;p&gt;To push my local project to GitHub, I needed a secure way for my computer to communicate with my GitHub account.&lt;/p&gt;

&lt;p&gt;I used SSH (Secure Shell).&lt;/p&gt;

&lt;p&gt;I first generated an SSH key on my computer and then added the public key to my GitHub account.&lt;/p&gt;

&lt;p&gt;An SSH key normally consists of two parts:&lt;/p&gt;

&lt;p&gt;Private key – stays securely on my computer.&lt;br&gt;
Public key – can be added to GitHub.&lt;/p&gt;

&lt;p&gt;One important lesson was that the private key should never be shared.&lt;/p&gt;

&lt;p&gt;After configuring my SSH key, I tested the connection using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A successful authentication confirmed that my computer could communicate securely with GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting to GitHub Using SSH Keys
&lt;/h2&gt;

&lt;p&gt;I also learned how to connect Git on my computer to my GitHub account using an &lt;strong&gt;SSH key&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After creating the SSH key, I added the public key to my GitHub account. I could then test whether the connection was working using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This was interesting because I learned that SSH allows my computer to communicate securely with GitHub without entering my GitHub password every time I push my work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pushing My Project to GitHub
&lt;/h2&gt;

&lt;p&gt;After creating a repository on GitHub, I connected my local project to it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin git@github.com:username/Kenya-Hospital-Records-Analysis.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I then pushed my project to GitHub using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push &lt;span class="nt"&gt;-u&lt;/span&gt; origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After refreshing my GitHub repository, I could see the files I had created on my computer now appearing on GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;The biggest thing I learned from this exercise is that &lt;strong&gt;Git and GitHub are different but work together&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Git helps me track changes to my project on my computer, while GitHub allows me to store and share the project online.&lt;/p&gt;

&lt;p&gt;I also now understand the basic Git workflow better:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create or change files
        ↓
git add
        ↓
git commit
        ↓
git push
        ↓
GitHub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first, the commands looked confusing but after using them practically, I started to understand what each command was doing.&lt;/p&gt;

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

&lt;p&gt;This was my first time taking a project from a local folder on my computer and pushing it to GitHub using Git and SSH.&lt;/p&gt;

&lt;p&gt;I am still learning Git and GitHub but I can now create a project, track my files, make commits and push my work to GitHub.&lt;/p&gt;

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