<?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: David Samuel</title>
    <description>The latest articles on DEV Community by David Samuel (@iblack).</description>
    <link>https://dev.to/iblack</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%2F4077400%2Ff75296df-fba0-4590-b514-aad58431991e.jpg</url>
      <title>DEV Community: David Samuel</title>
      <link>https://dev.to/iblack</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iblack"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>David Samuel</dc:creator>
      <pubDate>Sun, 23 Aug 2026 19:29:13 +0000</pubDate>
      <link>https://dev.to/iblack/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-1idb</link>
      <guid>https://dev.to/iblack/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-1idb</guid>
      <description>&lt;p&gt;Creating my first GitHub project entailed use of diverse resources namely Git, GitHub, and VS Code. As the first step to creating the project, it was critical to have a deep understanding of concepts such as Git, Git Bash, GitHub, and VS Code. Without the understanding, it would have been impossible to link Git to GitHub and publish the new project.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Definition of Terms
&lt;/h2&gt;

&lt;p&gt;Git and GitHub can be confusing terms, especially for beginners. While GitHub is a relatively commonplace terminology for anyone that has some level of interaction with people in the field of tech, Git is rarely mentioned. At a personal level, I had encountered the term GitHub, but never had I come across Git. As such, differentiating the two and understanding both was a crucial step in building my first GitHub project. From the onset, I learned that Git is a software program that helps one track changes in files stored in their local machine. While the software is pre-installed in some operating systems, it has to be manually installed in Windows. Git is run using Git Bash, an interface for writing Git commands. On the other hand, GitHub is cloud-based website that stores Git projects and allows collaboration among developers. Unlike Git which is local, GitHub is remote and is used to publish code created on different code editors such as VS Code.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Creating a Local Folder
&lt;/h2&gt;

&lt;p&gt;Creating a local folder using Git Bash is an alternative to the traditional approach of right clicking on the screen and creating a new folder. Doing so is a step-wise procedure entailing selecting the directory within which you want to create the new folder as well as creating the new folder and the sub-folders and files within it. For my project, I created the folder on my desktop. &lt;br&gt;
To list all the directories on my pc, I ran the command below in my Git Bash terminal:&lt;br&gt;
&lt;code&gt;ls&lt;/code&gt;&lt;br&gt;
With Desktop being one of my directories and the directory within which I intended to create my new folder, I ran the command below to change directory to Desktop and consequently manipulate it as desired:&lt;br&gt;
&lt;code&gt;cd Desktop&lt;/code&gt;&lt;br&gt;
I then created my folder christened “My-First-GitHub-Project” within Desktop by running:&lt;br&gt;
&lt;code&gt;mkdir My-First-GitHub-Project&lt;/code&gt;&lt;br&gt;
Subsequently, I created 3 folders (Data, Notebook, Scripts) within “My-First-Desktop-Project” folder. This phase entailed two steps, the first one being changing directory from Desktop to “My-First-GitHub Project” folder using the command below:&lt;br&gt;
&lt;code&gt;cd My-First-GitHub-Project&lt;/code&gt;&lt;br&gt;
This step was followed by creating the aforementioned folders using the Git Bash commands below:&lt;br&gt;
&lt;code&gt;mkdir Data&lt;/code&gt;&lt;br&gt;
&lt;code&gt;mkdir Notebook&lt;/code&gt;&lt;br&gt;
&lt;code&gt;mkdir Scripts&lt;/code&gt;&lt;br&gt;
I also created two files within “My_First_GitHub_Project” folder using the commands below:&lt;br&gt;
&lt;code&gt;touch README.md&lt;/code&gt;&lt;br&gt;
&lt;code&gt;touch Analysis.py&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Linking and Pushing the Project to GitHub
&lt;/h2&gt;
&lt;h4&gt;
  
  
  Linking Git to GitHub
&lt;/h4&gt;

&lt;p&gt;Prior to pushing the project to GitHub, it was necessary to link Git to GitHub using the steps outlined below:&lt;br&gt;
&lt;em&gt;Step 1: Configuring Git&lt;/em&gt;&lt;br&gt;
The step entailed setting up my username and GitHub email using the commands below:&lt;br&gt;
&lt;code&gt;git config --global user.name "My Name"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git config --global user.email “my-name@gmail.com”&lt;/code&gt;&lt;br&gt;
&lt;em&gt;Step 2: Verifying Configuration&lt;/em&gt;&lt;br&gt;
To verify my configuration, I ran the command below:&lt;br&gt;
&lt;code&gt;git config --global –list&lt;/code&gt;&lt;br&gt;
&lt;em&gt;Step 3: SSH Key Generation&lt;/em&gt;&lt;br&gt;
To generate the SSH key, I ran the command below:&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C “my-name@gmail.com”&lt;/code&gt;&lt;br&gt;
The above step was followed by adding and confirming a blank passphrase. Subsequently, a public and a private key pair was generated as shown below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;id_ed25519
id_ed25519.pub

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

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Step 4: Copying Public Key&lt;/em&gt;&lt;br&gt;
To copy the public key, I ran the clip command with the path to where the key was stored as shown below: &lt;br&gt;
&lt;code&gt;clip &amp;lt; /c/Users/MyPC/.ssh/id_ed25519.pub&lt;/code&gt;&lt;br&gt;
&lt;em&gt;Step 5: Adding the Key to GitHub&lt;/em&gt;&lt;br&gt;
To add the key to my GitHub account, I first logged in, then navigated to profile, then settings, then SSH and GPG Keys where I selected “New SSH Key”.&lt;br&gt;
Next, I pasted the key I had copied in the “key” section and gave a brief description in the “title” section.&lt;br&gt;
&lt;em&gt;Step 6: Testing if The Key Was Added Properly&lt;/em&gt;&lt;br&gt;
I then tested if the key had been added properly by going to the Git Bash terminal and typing the command below:&lt;br&gt;
&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;br&gt;
From this command, I confirmed that the SSH connection had been established and was working properly. &lt;/p&gt;

&lt;h3&gt;
  
  
  Pushing to GitHub
&lt;/h3&gt;

&lt;p&gt;I used VS Code to push the project created on my local PC to GitHub using the steps outlined below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Opened VS Code&lt;/li&gt;
&lt;li&gt;Clicked on “File”&lt;/li&gt;
&lt;li&gt;Clicked on “Open Folder”&lt;/li&gt;
&lt;li&gt;Selected the “My-First-GitHub-Project” folder created on my desktop&lt;/li&gt;
&lt;li&gt;Navigated to “Source Control” and selected “Initialize Repository”&lt;/li&gt;
&lt;li&gt;Wrote a “Commit Message” and then selected “Commit and Sync”&lt;/li&gt;
&lt;li&gt;Clicked “Publish Branch” and selected “Publish to GitHub as private repository” since I did not want the repository to be public&lt;/li&gt;
&lt;li&gt;Logged in to GitHub using the “Open on GitHub” button to check my newly created repository. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Overall, the whole exercise of creating my first GitHub project not only helped me conceptualize how to push a project from a local folder to GitHub but also instilled a deeper comprehension of the difference between Git and GitHub, various Git Bash commands, and how to navigate between VS Code and GitHub. &lt;/p&gt;

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