<?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: Mohammed Swaleh</title>
    <description>The latest articles on DEV Community by Mohammed Swaleh (@maditech).</description>
    <link>https://dev.to/maditech</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%2F4071712%2F1df7d292-c5c6-4d4c-9e9a-90e823cea4e6.png</url>
      <title>DEV Community: Mohammed Swaleh</title>
      <link>https://dev.to/maditech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maditech"/>
    <language>en</language>
    <item>
      <title>My First GitHub Project: From a Local Folder to GitHub Using Git and SSH</title>
      <dc:creator>Mohammed Swaleh</dc:creator>
      <pubDate>Sat, 22 Aug 2026 17:52:45 +0000</pubDate>
      <link>https://dev.to/maditech/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-26mn</link>
      <guid>https://dev.to/maditech/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-26mn</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;I have always used the term &lt;em&gt;Git&lt;/em&gt;, &lt;em&gt;Github&lt;/em&gt; and &lt;em&gt;Git bash&lt;/em&gt; interchangeably, thinking they refer to the same thing, but I have come to learn and understand that &lt;em&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/em&gt; is an online platform on the internet where developers store and share their projects, or repositories. A &lt;em&gt;&lt;strong&gt;repository&lt;/strong&gt;&lt;/em&gt;, normally called a &lt;em&gt;repo&lt;/em&gt;, is a project being tracked by Git. &lt;em&gt;&lt;strong&gt;Git&lt;/strong&gt;&lt;/em&gt; is a version control system that runs on the local computer and can be used to track checkpoints created in a project. Therefore, &lt;em&gt;Git&lt;/em&gt; is the tool used to track changes in a project, while &lt;em&gt;&lt;strong&gt;SSH&lt;/strong&gt;&lt;/em&gt;, which stands for &lt;em&gt;Secure Shell&lt;/em&gt;, provides a secure way to connect your git running on your computer to GitHub on the internet. _ Git Bash _ is a tool or an application that can be used to run Git commands&lt;/p&gt;

&lt;p&gt;This guide explains how to upload a project from a local folder on your computer to GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;1. Create a GitHub Account&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Go to &lt;a href="https://dev.tourl"&gt;(https://github.com/)&lt;/a&gt; and sign up for an account if you do not already have one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.tourl"&gt;(https://github.com/signup)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will normally provide your email address, password and username for the github account. After creating the account, verify your email address.&lt;/p&gt;

&lt;p&gt;After signing in, create a new repository. A repository is a storage space for your project.&lt;/p&gt;

&lt;p&gt;When creating the repository, provide a name for the repo, then click &lt;em&gt;Create repository&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. Install Git on your windows PC&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;First, install Git on your computer from the official Git website:&lt;/p&gt;

&lt;p&gt;[Download Git] &lt;a href="https://dev.tourl"&gt;(https://git-scm.com/downloads)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After downloading the installer:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your Downloads folder.&lt;/li&gt;
&lt;li&gt;Find the downloaded Git installer.&lt;/li&gt;
&lt;li&gt;Double-click it.&lt;/li&gt;
&lt;li&gt;Allow Windows to run the installer.&lt;/li&gt;
&lt;li&gt;Go through the installation screens.&lt;/li&gt;
&lt;li&gt;For a normal beginner installation, you can generally keep the recommended/default options.&lt;/li&gt;
&lt;li&gt;Complete the installation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One important tool installed with Git for Windows is Git Bash. After installing it, open git bash and run on the command prompt to check that Git works:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git --version&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If Git is installed correctly, you will see its version number.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git version 2.55.0.windows.4&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3. Configure Git Username and Email Address&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Next, you need to tell git your username and email address associated with your GitHub account. You type on the command prompt&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global user.name "Your Full Name"&lt;/code&gt; &lt;em&gt;to configure your name&lt;/em&gt; and &lt;br&gt;
&lt;code&gt;git config --global user.email "Your Email address"&lt;/code&gt; &lt;em&gt;to configure your email&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;:&lt;br&gt;
&lt;code&gt;git config --global user.name "Mohammed Swaleh"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global user.email mswaleh@gmail.com&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Configure main as the Default Branch
&lt;/h2&gt;

&lt;p&gt;Next, you need to Set &lt;em&gt;main&lt;/em&gt; as the Default Branch&lt;br&gt;
&lt;em&gt;Run&lt;/em&gt;:&lt;br&gt;
&lt;code&gt;git config --global init.defaultBranch main&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This tells Git to use main, as the default initial branch for new repositories.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;5. Verify Your Git Configuration&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;To check your name: &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Type in Git Bash&lt;/em&gt;&lt;br&gt;
&lt;code&gt;git config --global user.name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To check your email:&lt;br&gt;
&lt;em&gt;type&lt;/em&gt;&lt;br&gt;
&lt;code&gt;git config --global user.email&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To check all global configuration:&lt;br&gt;
&lt;code&gt;git config --global --list&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You should see something similar to:&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="py"&gt;user.name&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Mohammed Swaleh&lt;/span&gt;
&lt;span class="py"&gt;user.email&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;mswaleh@gmail.com&lt;/span&gt;
&lt;span class="py"&gt;init.defaultbranch&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;main&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;6. Set Up Secure Shell (SSH)&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;SSH allows Git to connect securely to your GitHub account without asking for your password every time.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Confirm SSH key exists&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Open your terminal and check whether SSH key exists&lt;br&gt;
&lt;em&gt;Type&lt;/em&gt;&lt;br&gt;
&lt;code&gt;ls -al ~/.ssh&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can see&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&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;blockquote&gt;
&lt;p&gt;or older files such as:&lt;br&gt;
&lt;code&gt;id_rsa&lt;br&gt;
id_rsa.pub&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;if you encounter this error message:&lt;br&gt;
&lt;code&gt;No such file or directory&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This means that the SSH key does not exist and you need to create an SSH key&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
  
  
  &lt;strong&gt;Create an SSH key&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Type in the terminal:&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C "your_email@example.com"&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Replace:&lt;br&gt;
&lt;em&gt;&lt;a href="mailto:your_email@example.com"&gt;your_email@example.com&lt;/a&gt;&lt;/em&gt;, with the &lt;em&gt;email&lt;/em&gt; associated with your &lt;em&gt;GitHub account&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;code&gt;ssh-keygen -t ed25519 -C "mswaleh@gmail.com"&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Press &lt;em&gt;Enter&lt;/em&gt; to accept the suggested file location. You can also create a passphrase for extra security.&lt;/p&gt;
&lt;h3&gt;
  
  
  &lt;strong&gt;Confirm That the Key Was Created&lt;/strong&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;type:&lt;br&gt;
&lt;code&gt;ls -al ~/.ssh&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You should now see:&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&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;h2&gt;
  
  
  &lt;strong&gt;7. ADD THE private SSH KEY TO THE SSH AGENT&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The SSH agent helps manage your private SSH key and can remember its passphrase during your session. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;To Start the SSH Agent for windows, &lt;br&gt;
&lt;em&gt;open&lt;/em&gt;:&lt;br&gt;
&lt;em&gt;PowerShell, as Administrator.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On the powershell terminal, &lt;/p&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;code&gt;Get-Service -Name ssh-agent | Set-Service -StartupType Manual&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;Start-Service ssh-agent&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Exit powershell as an &lt;em&gt;administrator&lt;/em&gt;, open powershell as a &lt;em&gt;normal user&lt;/em&gt;,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Type:&lt;br&gt;
&lt;code&gt;ssh-add c:/Users/YOUR_USERNAME/.ssh/id_ed25519&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Replace:&lt;br&gt;
&lt;em&gt;YOUR_USERNAME&lt;/em&gt; with your actual Windows username.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;code&gt;ssh-add c:/Users/mswaleh/.ssh/id_ed25519&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you do not know your Windows username, you can run:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;whoami&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You may receive something like:&lt;br&gt;
&lt;code&gt;DESKTOP-12345\mswaleh&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Your username is therefore, in this example:&lt;br&gt;
&lt;code&gt;mswaleh&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;8. Windows — Copy the Public SSH Key&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Open Git Bash.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Run&lt;br&gt;
&lt;code&gt;cat ~/.ssh/id_ed25519.pub | clip&lt;/code&gt;&lt;br&gt;
The public key should now be in your clipboard.&lt;/p&gt;

&lt;p&gt;If that does not work, display it:&lt;br&gt;
&lt;code&gt;cat ~/.ssh/id_ed25519.pub&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You will see one long line similar to:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... mswaleh@gmail.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Copy the entire line.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;9. ADD THE SSH KEY TO GITHUB&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;On GitHub:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click your profile picture.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Settings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;SSH and GPG keys&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;New SSH key&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Give the key a name.&lt;/li&gt;
&lt;li&gt;Paste your public key.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add SSH key&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;GitHub may ask you to confirm your email account.&lt;br&gt;
Complete the confirmation.&lt;br&gt;
Your SSH public key should then appear in your GitHub account.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;10. TEST THE SSH CONNECTION&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Test GitHub SSH Authentication&lt;br&gt;
Return to:&lt;br&gt;
Git Bash on Windows,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Run:&lt;br&gt;
&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;br&gt;
If everything is correctly configured, you should get a message similar to:&lt;/p&gt;

&lt;p&gt;Hi YOUR_USERNAME! You've successfully authenticated, but GitHub does not provide shell access. This is a success message.&lt;br&gt;
It means:&lt;br&gt;
Computer&lt;br&gt;
↓&lt;br&gt;
Private SSH Key&lt;br&gt;
↓&lt;br&gt;
GitHub verifies the public key&lt;br&gt;
↓&lt;br&gt;
Authentication Successful&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;11. Open Your Local Project&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Use the terminal to move into your project folder.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;cd path/to/your-project&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can check the files in the folder with:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ls&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;12. Turn the Folder Into a Git Repository&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Inside the project folder, run:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This creates a hidden &lt;code&gt;.git&lt;/code&gt; folder. Git uses this folder to track changes in your project.&lt;/p&gt;

&lt;p&gt;Now check the status of your files:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;13. Add a README File&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A &lt;em&gt;README file&lt;/em&gt; explains what your project is about. Create a file called &lt;em&gt;README.md&lt;/em&gt; and write a short description.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;


&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# My First GitHub Project&lt;/span&gt;

This is my first project uploaded to GitHub using Git and SSH.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;14. Save Your Files in Git&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Add all project files:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git add .&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The period means "add all files in this folder".&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Create your first commit:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m "Initial commit"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A commit is a saved version of your project. The message explains what was changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;15. Connect the Local Folder to GitHub&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;On your GitHub repository page, copy the SSH address. It will look similar to this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git@github.com:your-username/your-repository.git&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Connect your local project to the GitHub repository:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git remote add origin git@github.com:your-username/your-repository.git&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can check the connection with:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;16. Upload the Project&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Rename your main branch to &lt;em&gt;main&lt;/em&gt;:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git branch -M main&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Then upload the project to GitHub:&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;p&gt;The &lt;em&gt;push&lt;/em&gt;  command sends your committed files from your computer to GitHub.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Refresh your GitHub repository page. Your project files should now be visible online.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;17. Updating the Project Later&lt;/strong&gt;
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Whenever you make changes, use these three commands:&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Describe your changes"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Add homepage design"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;This saves the new changes locally and uploads them to GitHub.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;18. Common Problems&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;GitHub rejects the push&lt;/strong&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Make sure the repository address is correct:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can replace the incorrect address with:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git remote set-url origin git@github.com:your-username/your-repository.git&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;SSH permission denied&lt;/strong&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Check that your SSH key has been added to GitHub and test the connection again:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Files are not uploaded&lt;/strong&gt;
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Check the repository status:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Then add, commit, and push the files:&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Add project files"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;Final Git Workflow&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The basic workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
git remote add origin git@github.com:your-username/your-repository.git
git branch &lt;span class="nt"&gt;-M&lt;/span&gt; main
git push &lt;span class="nt"&gt;-u&lt;/span&gt; origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;After the first upload, you usually only need:&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Describe your changes"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Moving a project from a local folder to GitHub may seem difficult at first, but the process becomes simple with practice. Git tracks your work, GitHub stores it online, and SSH provides a secure connection between your computer and your GitHub account.&lt;/p&gt;

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