<?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: Adrian Mageto</title>
    <description>The latest articles on DEV Community by Adrian Mageto (@adrian_mageto).</description>
    <link>https://dev.to/adrian_mageto</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%2F4070904%2F9ae7b655-6643-43d1-b5bb-3a87d0ce00ac.png</url>
      <title>DEV Community: Adrian Mageto</title>
      <link>https://dev.to/adrian_mageto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adrian_mageto"/>
    <language>en</language>
    <item>
      <title>MY FIRST GITHUB PROJECT</title>
      <dc:creator>Adrian Mageto</dc:creator>
      <pubDate>Sat, 22 Aug 2026 15:16:04 +0000</pubDate>
      <link>https://dev.to/adrian_mageto/my-first-github-project-268j</link>
      <guid>https://dev.to/adrian_mageto/my-first-github-project-268j</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In this article I will explain my practical experience of creating Git repository,connecting it to GitHub using SSH,commiting my files and pushing the project to a remote repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 :Creating My Local Project
&lt;/h2&gt;

&lt;p&gt;The first step is to create a folder through file explorer which as the best option for me and name it (my-project)&lt;br&gt;
Next step was to open GitBash and run the command &lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd my- project&lt;/code&gt;&lt;br&gt;
To open the file directory&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 2 : Initializing Git
&lt;/h2&gt;

&lt;p&gt;This is to tell Git that my my-project folder should  become a Git repository.&lt;br&gt;
To initialize Git I ran the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git init&lt;/code&gt; &lt;/p&gt;
&lt;h2&gt;
  
  
  Step 3:Repository Status Check
&lt;/h2&gt;

&lt;p&gt;After initializing Git, I used :&lt;/p&gt;

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

&lt;p&gt;This command is very useful as it can be used throughout the process  it tells what's happening inside my repository.&lt;br&gt;
At some point people may encounter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;On branch main
Nothing to commit, working on a tree clean
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It could seem like an error,however I learned that this means Git has checked my project and found no changes that need to be committed.&lt;/p&gt;

&lt;p&gt;Another situation that I encountered is where Git told me that the older my project was already initialized .This taught me to use the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
To understand the current status of my project.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 4:Connecting GitHub Using SSH
&lt;/h2&gt;

&lt;p&gt;The next thing I learnt was on how to generate SSH key which will be used to connect my computer securely to GitHub.&lt;br&gt;
To generate an SSH key I ran the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ssh-keygen -t ed25519 -C "your_email@example.com"&lt;/code&gt;&lt;br&gt;
Under the double quotes use the email used for your GitHub account.&lt;/p&gt;

&lt;p&gt;Then press entre to save it on the default location.&lt;br&gt;
You'll then be told to enter passphrase which is simply a password,create a simple one which you can memorize easily like 1234.Then entre it again when asked.&lt;/p&gt;

&lt;p&gt;You then start the SSH agent &lt;br&gt;
Run;&lt;br&gt;
&lt;code&gt;eval "$(ssh-agent -s)"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then add your SSH keyy&lt;br&gt;
Run:&lt;br&gt;
&lt;code&gt;ssh-add ~/ .ssh/id_ed2559&lt;/code&gt;&lt;br&gt;
It will ask you to entre the passphrase you created.&lt;br&gt;
Copy your public key y running the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cat ~ .ssh/id_ed25519 .pub&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Add the entire line generated by coping it then go on GitHub-Settings-SSH and GPG keys-New SSH key,give it a title and paste the public key and save it.&lt;/p&gt;

&lt;p&gt;Then test the connection ack in Git Bash through the command:&lt;br&gt;
&lt;code&gt;ssh -T git@ithub.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Step 5:Creating a Repository on GitHub&lt;/p&gt;

&lt;p&gt;Log in to your GitHub account on the far right click on your profile scroll down to repositories press the option.&lt;/p&gt;

&lt;p&gt;After that create your repository,give it a title, add a small description about it ,choose its visibility to public finally press create repository.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 5:Adding Files
&lt;/h2&gt;

&lt;p&gt;This means to prepare the files and add changes in the current directory.&lt;/p&gt;

&lt;p&gt;To do this one runs the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git add .&lt;/code&gt;&lt;br&gt;
I could then check the status again:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
The files would appear as changes ready to be committed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 6:Create a Commit
&lt;/h2&gt;

&lt;p&gt;This stage is like a saved checkpoint in my project.&lt;br&gt;
To create a Commit run the command:&lt;/p&gt;

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

&lt;p&gt;The message "Initial commit" is just a commit statement which can be different to your preference.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 7:Connect the Local Repository to GitHub
&lt;/h2&gt;

&lt;p&gt;I connected my local repository to GitHub &lt;br&gt;
Firstly one should open GitHub go to where he repository you created is click on it then copy the SSH which is used as a location key.&lt;br&gt;
Then using the command :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote add origin (paste the SSH key copied from GitHub)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then to check whether the connection was established we use the command :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt;&lt;br&gt;
Then to ensure your current branch is called main use the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git branch -M main&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 8:Push the Project to GitHub
&lt;/h2&gt;

&lt;p&gt;To push the folder&lt;/p&gt;

&lt;p&gt;I used:&lt;br&gt;
&lt;code&gt;git push -u origin main&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The -u option sets the remote ranch as the upstream branch .This means that later I can usually use:&lt;/p&gt;

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

&lt;p&gt;Then go to your GitHub and click on your repository, you will find the folder my-project inside your online GitHub repository.&lt;/p&gt;
&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Creating my first GitHub project helped me move from simply  having  files on my computer to managing a project using a professional development workflow.&lt;/p&gt;

&lt;p&gt;To understand the Git command projects I came up with my own mnemonic "I See All Commits Reach Big Places"&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 status 
git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit&lt;span class="s2"&gt;"commit statement"&lt;/span&gt;
git remote add origin &amp;lt;repository-url&amp;gt;
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;



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