<?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: Elvis</title>
    <description>The latest articles on DEV Community by Elvis (@muoks_102).</description>
    <link>https://dev.to/muoks_102</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%2F4082156%2F68f2c5e0-393a-4319-b420-81666e6d6f4d.png</url>
      <title>DEV Community: Elvis</title>
      <link>https://dev.to/muoks_102</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muoks_102"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>Elvis</dc:creator>
      <pubDate>Sun, 23 Aug 2026 00:11:26 +0000</pubDate>
      <link>https://dev.to/muoks_102/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-25j3</link>
      <guid>https://dev.to/muoks_102/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-25j3</guid>
      <description>&lt;p&gt;I thought that when i join Lux Dev i would jump straight into building complex data pipelines and getting to understand kafka, kafka sounds like a really cool name, but if there's one thing I'm realizing quickly, it's that before you can orchestrate complex data pipelines or deploy web scrapers, you have to master the absolute basics of version control.&lt;/p&gt;

&lt;p&gt;This week, I was working on setting up a new local project, a health records analysis and pushing it to GitHub entirely through the command line.&lt;/p&gt;

&lt;p&gt;If you're just starting out with version control, here is exactly how I took a project from a completely blank folder on my desktop to a live repository on GitHub, including testing SSH keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Up the Local Project
&lt;/h2&gt;

&lt;p&gt;First, I needed a place for my project to live. I opened my bash terminal, navigated to my Desktop using he &lt;code&gt;cd&lt;/code&gt;command, and created the main project folder along with a sub-folder for the data named Data.&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;cd &lt;/span&gt;Desktop
&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; Kenya_Hospital_Health_Records_Project/Data
&lt;span class="nb"&gt;cd &lt;/span&gt;Kenya_Hospital_Health_Records_Project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the directories created, I copied and pasted my Kenya_Hospital_Health_Records_Project.csv data set we were given in class into the Data folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing the README via Terminal
&lt;/h2&gt;

&lt;p&gt;Instead of opening a text editor, I decided to build out my README.md right from the command line using &lt;code&gt;echo&lt;/code&gt; command. The &lt;code&gt;&amp;gt;&lt;/code&gt;operator adds new text the file, while &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; adds text to the already creaed line.&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;echo&lt;/span&gt; &lt;span class="s2"&gt;"# KENYA HEALTH RECORDS ANALYSIS"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; README.md
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"## Project Overview"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; README.md
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"This project analyses health records of a hospital"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; README.md

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also added a quick list of tools and challenges using the same method and used the &lt;code&gt;cat README.md&lt;/code&gt; command to print the contents of the file directly in the terminal to confirm that everything looked right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Initializing and Staging
&lt;/h2&gt;

&lt;p&gt;Now it was time to turned this folder into a tracked Git repository.&lt;/p&gt;

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

&lt;p&gt;Running git status showed that my Data/ folder and README.md were untracked. To stage them for my first commit, I used add command tell Git to add everything in the current directory:&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Committing the Code
&lt;/h2&gt;

&lt;p&gt;With the files staged, I wrote a commit message to remind myself in future what the code was about. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m "Kenye Hospital Data Project"&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting to GitHub and Testing SSH
&lt;/h2&gt;

&lt;p&gt;At this point, I needed to link my local repo to the empty GitHub repository I had just created.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote add origin https://github.com/dev-elvismuoka/Git-Commands-Class.git&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I confirmed that the SSH for secure authentication was working before trying to push:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The response was: Hi dev-elvismuoka! You've successfully authenticated, but GitHub does not provide shell access.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Final Push
&lt;/h2&gt;

&lt;p&gt;Finally, it was time for me to push my local main branch to the origin remote on GitHub. The -u command to make sure that for future updates, I can just type git push without typing out the branch name every time.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push -u origin main&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And just like that, the project was live.&lt;/p&gt;

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