<?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: Alex Majale</title>
    <description>The latest articles on DEV Community by Alex Majale (@alex_majale_d64efa6d81883).</description>
    <link>https://dev.to/alex_majale_d64efa6d81883</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%2F4070903%2F17fb8e54-8213-48a8-8c48-2f8a9a49e779.png</url>
      <title>DEV Community: Alex Majale</title>
      <link>https://dev.to/alex_majale_d64efa6d81883</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alex_majale_d64efa6d81883"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to Github Using Git and SSH</title>
      <dc:creator>Alex Majale</dc:creator>
      <pubDate>Thu, 20 Aug 2026 10:09:58 +0000</pubDate>
      <link>https://dev.to/alex_majale_d64efa6d81883/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-8e8</link>
      <guid>https://dev.to/alex_majale_d64efa6d81883/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-8e8</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;When I first heard the words Git and GitHub, I actually thought that git was the short form of GitHub, only to realise that they are two different things.&lt;br&gt;
Git is free, open-source version control software used by programmers to track code changes and collaborate. Git is a version control system that runs on my computer. GitHub, on the other hand, is a cloud-based web platform where computer programmers store, share, and work together on software code. &lt;br&gt;
This article explains how I created a local repository and pushed the project to GitHub using Git and SSH.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Requirements I Needed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A GitHub account&lt;/li&gt;
&lt;li&gt;Git installed on the Computer&lt;/li&gt;
&lt;li&gt;An SSH Key configured with GitHub&lt;/li&gt;
&lt;li&gt;Visual Studio Code installed on the Computer &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Did It
&lt;/h2&gt;

&lt;p&gt;I started by opening GitBash on my desktop, then typed &lt;code&gt;ls&lt;/code&gt; to see what my desktop contained.&lt;br&gt;
The &lt;code&gt;ls&lt;/code&gt; command means list, and it is used to list the contents of a directory.&lt;br&gt;
Next, I created a folder called My First Project.&lt;br&gt;
using &lt;code&gt;mkdir "My First Project"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;mkdir&lt;/code&gt;means make directory and is used to create a new folder.&lt;br&gt;
I then used &lt;code&gt;cd "My First Project"&lt;/code&gt; to enter the folder.&lt;br&gt;
&lt;code&gt;cd&lt;/code&gt; means change directory and is used to open folders.&lt;br&gt;
While in the My First Project folder, I created another folder called &lt;strong&gt;Data&lt;/strong&gt;.&lt;br&gt;
Using &lt;code&gt;mkdir Data&lt;/code&gt;&lt;br&gt;
Then I created a README file using &lt;code&gt;touch README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;touch&lt;/code&gt; is used to create an empty file&lt;br&gt;
So to add information to the README file I used&lt;br&gt;
&lt;code&gt;echo "# My First Project"&amp;gt; README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;echo&lt;/code&gt; means to output or display text, data, or variable values directly to a screen, terminal, or log file.&lt;br&gt;
The # is used to show that it is a heading.&lt;br&gt;
I then generated practice data and copied it into the &lt;strong&gt;Data&lt;/strong&gt; folder&lt;br&gt;
I then used &lt;code&gt;echo "This is practice data on Hardware sales"&amp;gt;&amp;gt; README.md&lt;/code&gt;&lt;br&gt;
This time I used &amp;gt;&amp;gt; so that I could not overwrite the first line in the README file.&lt;br&gt;
I then used &lt;code&gt;cat README.md&lt;/code&gt; to see the contents of the README file.&lt;br&gt;
cat is a standard command used to read, print, combine, and create text files directly from the terminal.&lt;br&gt;
I then confirmed the contents of the Data folder using &lt;code&gt;ls Data&lt;/code&gt;&lt;br&gt;
I keyed in &lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git init&lt;/code&gt;  stands for "Git Initialize," and it is the command used to create a brand-new, empty Git repository.&lt;br&gt;
Then &lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git status&lt;/code&gt; shows the current state of your repository's working directory and staging area. It tells you which files have been changed, which ones are prepared for your next save point (commit), and which ones Git is completely ignoring.&lt;br&gt;
Then ran &lt;code&gt;git add .&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git add&lt;/code&gt; is the command used to save your code changes into a temporary preparation zone.&lt;br&gt;
Then I ran &lt;code&gt;git commit -m "Add My First Project"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git commit&lt;/code&gt; is a save point, or snapshot, of your project's files at a specific moment in time.&lt;br&gt;
I then ran &lt;code&gt;git log&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git log&lt;/code&gt; is a command-line tool used to view the history of changes (commits) made to a code repository.&lt;br&gt;
Then &lt;code&gt;git remote add origin[SSH link]&lt;/code&gt;&lt;br&gt;
The SSH link is found on GitHub, where you copy it from the repository you created.&lt;br&gt;
Then I ran &lt;code&gt;git remote -v&lt;/code&gt;&lt;br&gt;
Finally, I ran &lt;code&gt;git push -u origin main&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git push&lt;/code&gt; uploads your local repository commits to a remote repository.&lt;br&gt;
After this, the project was uploaded to my GitHub. &lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;I was able to learn about the difference between git and GitHub, and along the way I managed to understand the process of pushing a project from a local repository to an online repository using Git, GitHub, and SSH.&lt;/p&gt;

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