<?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: Gloriah John</title>
    <description>The latest articles on DEV Community by Gloriah John (@gloriah_john_).</description>
    <link>https://dev.to/gloriah_john_</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%2F4081444%2Faff9844b-83fa-42db-bb73-4f07b127b069.jpg</url>
      <title>DEV Community: Gloriah John</title>
      <link>https://dev.to/gloriah_john_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gloriah_john_"/>
    <language>en</language>
    <item>
      <title>From a Local Folder to Github</title>
      <dc:creator>Gloriah John</dc:creator>
      <pubDate>Sun, 23 Aug 2026 13:42:48 +0000</pubDate>
      <link>https://dev.to/gloriah_john_/from-a-local-folder-to-github-i98</link>
      <guid>https://dev.to/gloriah_john_/from-a-local-folder-to-github-i98</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Git is a tool used to track changes made to a Git repository, while GitHub is a platform where Git repositories are stored and shared publicly or privately. In this article I will explain the procedure from a local folder to GitHub using Git and an SSH key as learnt at LuxDevHq.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Creating a local Folder
&lt;/h3&gt;

&lt;p&gt;On Git run,&lt;br&gt;
&lt;code&gt;mkdir First-GitHub-Project&lt;/code&gt;&lt;br&gt;
'mkdir' is simply 'make directory' &lt;br&gt;
Basically, we're telling the computer to make a folder called 'First GitHub Project'. &lt;br&gt;
 Next,&lt;br&gt;
&lt;code&gt;cd First-GitHub-Project&lt;/code&gt;&lt;br&gt;
'cd' simply is 'Change directory'&lt;br&gt;
We're basically moving into the folder created.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Creating a README File
&lt;/h3&gt;

&lt;p&gt;A README file gives you the freedom to edit changes to the file created.&lt;br&gt;
'touch README.md'&lt;br&gt;
'touch' is used to create a new empty file with extensions such as '.md' or '.py'.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Configuring Our laptop
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git &lt;span class="nt"&gt;--config&lt;/span&gt; global user.name &lt;span class="s1"&gt;'Your username'&lt;/span&gt;
git &lt;span class="nt"&gt;--config&lt;/span&gt; global user.email &lt;span class="s1"&gt;'Your email'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Configuration prepares our laptop for all the data work ahead.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Generate an SSH Key
&lt;/h3&gt;

&lt;p&gt;An SSH key is a secure way for a laptop to connect to one's GitHub account without repeatedly using a password.&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C "your email"&lt;/code&gt;&lt;br&gt;
An SSH key will be generated that you'll copy to your clipboard.&lt;/p&gt;
&lt;h3&gt;
  
  
  5. Connecting Github and Git
&lt;/h3&gt;

&lt;p&gt;Open GitHub, Profile picture → Settings → SSH and GPG keys → New SSH key, give it a title, paste it in the box and save it.&lt;br&gt;
Next,&lt;br&gt;
We test our connection to&lt;br&gt;
&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;br&gt;
If the connection is successful, a message of successful authentication will be displayed.&lt;/p&gt;
&lt;h3&gt;
  
  
  6. Connecting your Git project to GitHub
&lt;/h3&gt;

&lt;p&gt;On Git, run the following commands consecutively:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init to initialise a git repo
git status to check the repo
git add . to stage our file
git commit -m "write the commit message"
git log --oneline to display the commit message on one line
git branch to confirm if you are in the main branch
git branch -M main to change from master to main branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open Github and&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new repository&lt;/li&gt;
&lt;li&gt;Go to the repository's quick setup and click on SSH&lt;/li&gt;
&lt;li&gt;Copy the URL provide&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Back on Git, run the following commands consecutively:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin &lt;span class="s2"&gt;"paste the copied URL"&lt;/span&gt;
git remote &lt;span class="nt"&gt;-v&lt;/span&gt;
git push &lt;span class="nt"&gt;-u&lt;/span&gt; origin main
Enter a passphrase as prompted
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Back to GitHub, refresh your page, and you'll be able to see the folder created displayed.&lt;/p&gt;

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

&lt;p&gt;Coding is very interesting. The joy and thrill one feels when the Enter key is pressed and everything is running smoothly are incomparable. This data journey is an interesting one, and I'm looking forward to learning more and documenting the skills learnt in such articles.&lt;/p&gt;

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