<?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: Gabriel Wainaina</title>
    <description>The latest articles on DEV Community by Gabriel Wainaina (@gabriel_wainaina_f7281529).</description>
    <link>https://dev.to/gabriel_wainaina_f7281529</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%2F4070898%2Fdeb703e1-ff21-4815-b666-fb4e7fec7d8b.png</url>
      <title>DEV Community: Gabriel Wainaina</title>
      <link>https://dev.to/gabriel_wainaina_f7281529</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gabriel_wainaina_f7281529"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH.</title>
      <dc:creator>Gabriel Wainaina</dc:creator>
      <pubDate>Sun, 23 Aug 2026 06:37:37 +0000</pubDate>
      <link>https://dev.to/gabriel_wainaina_f7281529/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-34jj</link>
      <guid>https://dev.to/gabriel_wainaina_f7281529/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-34jj</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;The following is a step-by-step process of how i was able create my first GitHub project from a local folder and upload it to Github using Git and SSH.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a local folder using git.
&lt;/h2&gt;

&lt;p&gt;Using Gitbash, I wanted to see the list of files and directories on my pc. I used the command function &lt;code&gt;ls&lt;/code&gt; which enabled me to see them.&lt;br&gt;
Since I wanted to create a folder in Desktop under OneDrive, I used firstly &lt;code&gt;cd OneDrive&lt;/code&gt; which allowed me to access OneDrive then used &lt;code&gt;cd Desktop&lt;/code&gt; allowing me to access Desktop. Basically the command function &lt;code&gt;cd&lt;/code&gt; (change of directory) allows one to access a directory that is required while Using &lt;code&gt;cd ..&lt;/code&gt; allows one to go to the previous directory.&lt;br&gt;
Using &lt;code&gt;mkdir Kenya-Hospital-Health-Records-Project&lt;/code&gt; I was able to create a folder under the name Kenya-Hospital-Health-Records-Project. We can use hyphens, underscores and quotes in names that contain more than one word because inclusion of spaces will create separate folders instead of the required one folder.&lt;br&gt;
Using &lt;code&gt;cd Kenya-Hospital-Health-Records-Project&lt;/code&gt; to access our folder, I created another folder inside it called data using &lt;code&gt;mkdir data&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a README file
&lt;/h2&gt;

&lt;p&gt;I created Readme file using &lt;code&gt;touch README.md&lt;/code&gt;  where .md denotes mean Markdown. A Readme file would be able to explain the context of our project on Github and to do this we use the command function &lt;code&gt;echo&lt;/code&gt; to print text.&lt;br&gt;
I used &lt;code&gt;echo "# KENYA HEALTH RECORDS ANALYSIS" &amp;gt; README.md&lt;/code&gt; to indicate title of the README file and using # to indicate it is as the main title.&lt;br&gt;
Using &lt;code&gt;echo "## Project Overview" &amp;gt;&amp;gt; README.md&lt;/code&gt; I was able to mark it as a sub heading. using &amp;gt; instead of &amp;gt;&amp;gt; would have simply replaced our Tittle an used the subtitle as the main tittle hence I used &amp;gt;&amp;gt; to simply add and not replace.&lt;br&gt;
To see the contents we have written so far we use &lt;code&gt;cat README.md&lt;/code&gt;.&lt;br&gt;
I also incorporated &lt;code&gt;nano README.md&lt;/code&gt; to edit some parts where i saw fit to edit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Initializing git
&lt;/h2&gt;

&lt;p&gt;Then I used &lt;code&gt;git init&lt;/code&gt; which is used to treat the folder as a git repository creating a hidden folder. To see the hidden files the command function &lt;code&gt;ls -la&lt;/code&gt; is used.&lt;br&gt;
I used the function &lt;code&gt;git status&lt;/code&gt; to see the untracked files (these are files which exist but git hasn't been instructed to add them).&lt;/p&gt;

&lt;h2&gt;
  
  
  Committing and pushing
&lt;/h2&gt;

&lt;p&gt;I then prepared changes for the next commit by using &lt;code&gt;git add .&lt;/code&gt; followed by &lt;code&gt;git status&lt;/code&gt; to confirm it is ready for commitment.&lt;br&gt;
&lt;code&gt;git commit -m "add Kenya Hospital Analysis Project"&lt;/code&gt; to save changes to the commit. The message in quotes indicates what changes I made.&lt;br&gt;
Then I used &lt;code&gt;git log --oneline&lt;/code&gt; to see the commit history.&lt;br&gt;
A side note was the command function &lt;code&gt;git branch -M main&lt;/code&gt; which would have been used if the output did not have main to it.&lt;br&gt;
I further ran &lt;code&gt;git remote add origin SSH&lt;/code&gt; where the SSH is on Github and  its content is copy pasted directly after the origin.&lt;br&gt;
Then used the command &lt;code&gt;git remote -v&lt;/code&gt; to confirm the remote URL was added correctly and lastly &lt;code&gt;git push -u origin main&lt;/code&gt;  to upload it on Github.&lt;/p&gt;

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