<?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: Nyambura Thuita</title>
    <description>The latest articles on DEV Community by Nyambura Thuita (@barbz04).</description>
    <link>https://dev.to/barbz04</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%2F4071743%2Fc12bcae9-8be3-4897-bbb3-0094d2188cff.png</url>
      <title>DEV Community: Nyambura Thuita</title>
      <link>https://dev.to/barbz04</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/barbz04"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>Nyambura Thuita</dc:creator>
      <pubDate>Sat, 22 Aug 2026 22:15:01 +0000</pubDate>
      <link>https://dev.to/barbz04/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-12po</link>
      <guid>https://dev.to/barbz04/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-12po</guid>
      <description>&lt;h2&gt;
  
  
  Creating SSH key
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;At first I confirmed that my Github username and email were associated with Git.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The commands:&lt;br&gt;
&lt;code&gt;github config --global user.name&lt;br&gt;
github config --global user.email&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Generate SSH key
&lt;/h2&gt;

&lt;p&gt;To generate the SSH key I ran:&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C "my email"&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The SSH key is saved to specific file location such as drive C on the laptop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Copy the public key
&lt;/h2&gt;

&lt;p&gt;The command:&lt;br&gt;
&lt;code&gt;cat ~/.ssh/id_ed25519.pub&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Add the SSH key to Github
&lt;/h2&gt;

&lt;p&gt;Profile-Settings-Access-SSH and GPG key- New SSH key&lt;br&gt;
Then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add Title, Key type(Authentication key) and Paste the entire SSH key, Click Add SSH key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Test Connection
&lt;/h2&gt;

&lt;p&gt;On Git Bash ran:&lt;br&gt;
&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The correct output should be that I have been successfully authenticated with my GitHub account&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pushing a Local Folder to GitHub
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cd Desktop&lt;/code&gt; - navigate to desktop&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mkdir 'Kenyan Health Records Analysis'&lt;/code&gt;- create this folder on desktop&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cd Kenyan Health Records Analysis&lt;/code&gt;- navigate into this folder&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;touch README.md&lt;/code&gt;- create a README file&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mkdir data&lt;/code&gt;- create this folder within the Kenyan Health Records Analysis folder&lt;/li&gt;
&lt;li&gt;Copy the csv file into the &lt;strong&gt;data&lt;/strong&gt; folder.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;nano README.md&lt;/code&gt; - open the README file so as to edit it directly in GitBash. save and exit the file.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git init&lt;/code&gt;- initialize a Git repo.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt;- shows the current status of the files&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add .&lt;/code&gt;- stage all files/ changes for the next commit&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git commit -m "First commit on health records"&lt;/code&gt; - commits all files created to the repo.&lt;/li&gt;
&lt;li&gt;Create a new repo on Github page and copy the SSH link.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;git remote add origin "ssh link of the new repo on the GitHub page"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push -u origin main&lt;/code&gt; - pushes all files into the repo&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub Link:&lt;a href="https://github.com/Thuita24/Kenyan-Health-Records.git" rel="noopener noreferrer"&gt;https://github.com/Thuita24/Kenyan-Health-Records.git&lt;/a&gt;&lt;/p&gt;

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