<?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: Austin karianjahi</title>
    <description>The latest articles on DEV Community by Austin karianjahi (@karianjahi).</description>
    <link>https://dev.to/karianjahi</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%2F4070913%2F09f7eb05-c93c-4490-bdb7-2a42bb2f71d6.png</url>
      <title>DEV Community: Austin karianjahi</title>
      <link>https://dev.to/karianjahi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karianjahi"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>Austin karianjahi</dc:creator>
      <pubDate>Sat, 22 Aug 2026 12:14:27 +0000</pubDate>
      <link>https://dev.to/karianjahi/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-hlf</link>
      <guid>https://dev.to/karianjahi/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-hlf</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;This article is a walk through of my first project where I pushed a local folder containing health data to Github using Git and SSH.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools used
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Github - This is an online service where you can store Git repositories and it makes it possible to share and collaborate on projects.&lt;/li&gt;
&lt;li&gt;Git - This is a version control system that runs on your computer and keeps track of changes made to your project.&lt;/li&gt;
&lt;li&gt;SSH (&lt;em&gt;secure shell&lt;/em&gt;) - We use SSH when your computer needs a secure way to prove to Github that it is authorized to access your Github account and its repositories.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  On windows
&lt;/h2&gt;

&lt;p&gt;Open Gitbash and check your current location&lt;br&gt;
Run &lt;br&gt;
&lt;code&gt;pwd&lt;/code&gt; &lt;br&gt;
Which stands for &lt;em&gt;print working directory&lt;/em&gt;&lt;br&gt;
running &lt;code&gt;pwd&lt;/code&gt; asks which folder am I currently inside?&lt;/p&gt;

&lt;h3&gt;
  
  
  List files and folders around you
&lt;/h3&gt;

&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;ls&lt;/code&gt;&lt;br&gt;
Which shows the files and folders inside your current directory&lt;/p&gt;

&lt;h3&gt;
  
  
  Move to the Desktop
&lt;/h3&gt;

&lt;p&gt;I created my project on the Desktop by running&lt;br&gt;
&lt;code&gt;cd Desktop&lt;/code&gt;&lt;br&gt;
Where &lt;code&gt;cd&lt;/code&gt; means &lt;em&gt;Change Directory&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create the project folder
&lt;/h3&gt;

&lt;p&gt;I named my project&lt;br&gt;
kenya-health-records and run&lt;br&gt;
&lt;code&gt;mkdir kenya-health-records&lt;/code&gt;&lt;br&gt;
Where &lt;code&gt;mkdir&lt;/code&gt; means &lt;em&gt;Make Directory&lt;/em&gt; or &lt;em&gt;create new folder&lt;/em&gt;&lt;br&gt;
To confirm that the folder exists &lt;br&gt;
run&lt;br&gt;
&lt;code&gt;ls&lt;/code&gt; and you should see &lt;code&gt;kenya-health-records&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Enter the project folder
&lt;/h3&gt;

&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;cd kenya-health-records&lt;/code&gt;&lt;br&gt;
Then verify the project by running&lt;br&gt;
&lt;code&gt;pwd&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create a proper project structure
&lt;/h3&gt;

&lt;p&gt;Here I created three project folders by running&lt;br&gt;
&lt;code&gt;mkdir data&lt;/code&gt;&lt;br&gt;
&lt;code&gt;mkdir notebooks&lt;/code&gt;&lt;br&gt;
&lt;code&gt;mkdir scripts&lt;/code&gt;&lt;br&gt;
Then I created the README by running&lt;br&gt;
&lt;code&gt;touch README.md&lt;/code&gt;&lt;br&gt;
Which explains the entire project&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding the existing hospital dataset
&lt;/h3&gt;

&lt;p&gt;Since the hospital dataset was already on my computer under &lt;em&gt;Downloads&lt;/em&gt;&lt;br&gt;
I copied the dataset directly from downloads to the data folder I had created inside the project.&lt;br&gt;
To verify the dataset was copied I run&lt;br&gt;
&lt;code&gt;ls data&lt;/code&gt;&lt;br&gt;
And the outcome was &lt;em&gt;kenya_health_records.csv&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding content to the README.md
&lt;/h3&gt;

&lt;p&gt;Since the README.md explains the project to anyone who opens the Github repository.&lt;br&gt;
I started with &lt;code&gt;echo "#kenya hospital records" &amp;gt;README.md&lt;/code&gt;&lt;br&gt;
where &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;echo&lt;/code&gt; means &lt;em&gt;print text&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;# is a Markdown syntax for a large heading&lt;/li&gt;
&lt;li&gt;&amp;gt; Redirects the text into a file in this case to README.md&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I added the project overview, tools used, and project challenges.&lt;br&gt;
 To check my README I run&lt;br&gt;
&lt;code&gt;cat README.md&lt;/code&gt; &lt;br&gt;
Which displayed the contents in the README including the tittle, project overview, tools used and project challenges.&lt;/p&gt;

&lt;h3&gt;
  
  
  Initializing the project with Git
&lt;/h3&gt;

&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
Where &lt;code&gt;git init&lt;/code&gt; means initialize this directory as a Git repository.&lt;/p&gt;

&lt;p&gt;To check the project status&lt;br&gt;
Run &lt;br&gt;
&lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
Where this command is asking Git what is happening to the project.&lt;br&gt;
Because this was a new repository Git showed the files as &lt;em&gt;untracked&lt;/em&gt;&lt;br&gt;
Then run &lt;br&gt;
&lt;code&gt;git add&lt;/code&gt; &lt;br&gt;
Which stages the project from the current directory&lt;br&gt;
Then check&lt;br&gt;
&lt;code&gt;git status&lt;/code&gt; again &lt;/p&gt;

&lt;h3&gt;
  
  
  Create the first commit
&lt;/h3&gt;

&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;git commit -m "Add kenya hospital project"&lt;/code&gt;&lt;br&gt;
where &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git commit&lt;/code&gt; - creates a saved Git checkpoint.&lt;/li&gt;
&lt;li&gt;-m - means message.&lt;/li&gt;
&lt;li&gt;"Add kenya hospital project" is the commit message that explains what was saved.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Short commit history
&lt;/h3&gt;

&lt;p&gt;To get a shorter project history&lt;br&gt;
Run&lt;br&gt;
&lt;code&gt;git log --online&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Check the current branch
&lt;/h3&gt;

&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;git branch&lt;/code&gt;&lt;br&gt;
which returns &lt;br&gt;
*master&lt;br&gt;
rename it by running&lt;br&gt;
&lt;code&gt;git branch -M main&lt;/code&gt;&lt;br&gt;
then run &lt;code&gt;git branch&lt;/code&gt; and it changed to *main&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Github repository
&lt;/h3&gt;

&lt;p&gt;Open Github on browser and create a new repository and name it as &lt;em&gt;kenya  health project&lt;/em&gt; and add a brief description of the repository and choose it s a public repository and create the repository.&lt;br&gt;
After creating the repository Github displays connection options&lt;br&gt;
select SSH and git hub will givean adress which is &lt;em&gt;&lt;a href="mailto:git@github.com"&gt;git@github.com&lt;/a&gt;:karianjahi8/kenya-health-records.git&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conecting the local project to Github
&lt;/h3&gt;

&lt;p&gt;Return to the gitbash terminal then run&lt;br&gt;
&lt;code&gt;git remote add origin git@github.com:karianjahi8/kenya-health-records.git&lt;/code&gt;&lt;br&gt;
Where &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;remote&lt;/em&gt; is another Git repository your local repository can communicate with. &lt;/li&gt;
&lt;li&gt;
&lt;em&gt;add&lt;/em&gt; is a new remote connection.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;origin&lt;/em&gt;  is the conventional nickname for the main remote repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Push the prioject on Github
&lt;/h3&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;git push&lt;/em&gt; sends committed changes from my computer to the remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;-u&lt;/em&gt; sets an upstream relationship&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;origin&lt;/em&gt; The nickname of the Github repository&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;main&lt;/em&gt; The branch being uploaded&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Verify project on github
&lt;/h3&gt;

&lt;p&gt;Return to your github browser and refresh the page and you will see your project listed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Getting a project onto GitHub for the first time involves two separate concerns Git, which tracks your project's history locally, and SSH, which securely proves your identity to GitHub so it'll accept your pushes.&lt;/p&gt;

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