<?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: Otuko Mauwa</title>
    <description>The latest articles on DEV Community by Otuko Mauwa (@alfred-otuko).</description>
    <link>https://dev.to/alfred-otuko</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%2F4073717%2Fe1b91ec7-7b8f-4f42-95d8-be06f8c01184.png</url>
      <title>DEV Community: Otuko Mauwa</title>
      <link>https://dev.to/alfred-otuko</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alfred-otuko"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH.</title>
      <dc:creator>Otuko Mauwa</dc:creator>
      <pubDate>Sun, 23 Aug 2026 01:20:14 +0000</pubDate>
      <link>https://dev.to/alfred-otuko/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-3lae</link>
      <guid>https://dev.to/alfred-otuko/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-3lae</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Git is local software that i installed on my machine to help me manage codes while github is an online platform that host git repositories.&lt;br&gt;
This is a step by step guide of how i used git to publish my first project to github while a SSH key for a secure connection with github.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tools Used
&lt;/h2&gt;

&lt;p&gt;This task was done in the following environments&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Windows Operating system &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Git&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;git --version
git version 2.55.0.windows.4
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Github account &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Actions Taken to Link Git and Github
&lt;/h2&gt;

&lt;p&gt;This are the step by step methods that i used to mlink git and github&lt;/p&gt;

&lt;p&gt;1) Configuring Git&lt;/p&gt;

&lt;p&gt;Configured Git with my github username and the email I used in setting up my github account&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.name &lt;span class="s2"&gt;"alfieotuko"&lt;/span&gt;
git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.email &lt;span class="s2"&gt;"alfiemauwa7@gmail.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2) Generating the SSH key &lt;/p&gt;

&lt;p&gt;The next action is to generate ssh key. The command will generaye two ssh keys, a private ssh key which should not be share and a public ssh key which is what will be used to link the git and github. The generated public ssh key will be copied to be then pasted on github.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; ed25519 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"alfiemauwa7@gmail.com"&lt;/span&gt;
clip &amp;lt; &lt;span class="s2"&gt;"c/user/omolo/"&lt;/span&gt;.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3) Inserting the SSH to Github&lt;/p&gt;

&lt;p&gt;The copied ssh key will be be added to github by going to the github settings under the SSH AND GPG keys and then clicking on the ssh key. To confirm if the added ssh key was successful;&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;After which it will display a message that it was successful.&lt;/p&gt;

&lt;p&gt;4) Creating Local Folder &lt;br&gt;
Creating a folder in the local directory that will hold data of the project.&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;kenya-hospital-records-analysis
&lt;span class="nb"&gt;cd &lt;/span&gt;kenya-hospital-record-analysis

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

&lt;/div&gt;



&lt;p&gt;5) Creating a File and a Folder &lt;/p&gt;

&lt;p&gt;Creating a README.md file inside the kenya-hospital-record-analysis folder alongside the file also creating a folder 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;touch &lt;/span&gt;README.md
&lt;span class="nb"&gt;mkdir &lt;/span&gt;data
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;6) Creating a Git Repository &lt;/p&gt;

&lt;p&gt;This is to initialize and turn the folder in a git repository and to check in which branch is the folder in&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;git init 
git status
On branch main
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;7) Stage and Commit&lt;/p&gt;

&lt;p&gt;This is to stage and saving the project checkpoint history but still not saved in online cloud&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;git add .
git status 
On branch main
git commit -m "first commit for kenya-hospital-records-analysis"
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;8) Linking To Github&lt;/p&gt;

&lt;p&gt;Creating a new and empty repository on github and copying the the URL of the ssh from github and pasting it on git there by saving it on the online platform.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;git remote add origin git@github.com:alfieotuko/kenya-hospital-records-analysis
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;9) Pushing to Github&lt;/p&gt;

&lt;p&gt;To save the repository to github&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adding URL Link
&lt;/h2&gt;

&lt;p&gt;Here is the link to my github &lt;br&gt;
&lt;a href="https://github.com/alfieotuko" rel="noopener noreferrer"&gt;alfieotukoGithub&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;The local folder was saved and hosted in a cloud based github repositories with the ssh providing a secure hosting.&lt;/p&gt;

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