<?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: Antonina Mbugua</title>
    <description>The latest articles on DEV Community by Antonina Mbugua (@analystnina).</description>
    <link>https://dev.to/analystnina</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%2F4084610%2F507903d0-90c1-46a7-8862-59fed3c355c8.jpg</url>
      <title>DEV Community: Antonina Mbugua</title>
      <link>https://dev.to/analystnina</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/analystnina"/>
    <language>en</language>
    <item>
      <title>#My First GitHub Project</title>
      <dc:creator>Antonina Mbugua</dc:creator>
      <pubDate>Fri, 21 Aug 2026 12:06:11 +0000</pubDate>
      <link>https://dev.to/analystnina/-my-first-github-project-2lol</link>
      <guid>https://dev.to/analystnina/-my-first-github-project-2lol</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;When working on a project, you may make many changes to your files. It can become difficult to keep track of what you changed. Git helps you solve this by allowing you to record your changes and keep a history of your work. GitHub provides a place where the project can be stored online.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Git?
&lt;/h3&gt;

&lt;p&gt;Git is a tool used to keep track of changes made to files in a project. It helps you have different versions of your work so that you can see how your project has changed over time. This can be useful when working on a project because you can keep track of your progress and go back to an earlier version if needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is GitHub?
&lt;/h3&gt;

&lt;p&gt;GitHub is the online platform where you can store and share that Git project. &lt;/p&gt;

&lt;h3&gt;
  
  
  What is a Repository?
&lt;/h3&gt;

&lt;p&gt;A (repo) is a place where your project is stored and git keeps track of it's history.&lt;/p&gt;

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

&lt;p&gt;The first step is to create a folder on my computer where I will keep my project in my files. &lt;br&gt;
This is called a &lt;strong&gt;local folder&lt;/strong&gt; because it is stored in my computer.&lt;/p&gt;

&lt;p&gt;For example, I can create a folder called &lt;code&gt;my-first-project&lt;/code&gt;. I can then open Git Bash and move into the folderusing the &lt;code&gt;cd&lt;/code&gt; command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;my-first-project
&lt;span class="nb"&gt;cd &lt;/span&gt;my-first-project

The &lt;span class="k"&gt;**&lt;/span&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt;&lt;span class="k"&gt;**&lt;/span&gt; &lt;span class="nb"&gt;command &lt;/span&gt;is used to create a new folder, &lt;span class="k"&gt;while &lt;/span&gt;the &lt;span class="k"&gt;**&lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt;&lt;span class="k"&gt;**&lt;/span&gt; &lt;span class="nb"&gt;command &lt;/span&gt;is used to move into that folder.

So &lt;span class="nb"&gt;local &lt;/span&gt;folder - is basically my project&lt;span class="s1"&gt;'s home on my computer.
You create folder first, then git comes later when you 

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

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
bash&lt;br&gt;
git init&lt;/p&gt;

&lt;p&gt;so the order is &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create folder&lt;/li&gt;
&lt;li&gt;Enter folder&lt;/li&gt;
&lt;li&gt;Git init&lt;/li&gt;
&lt;li&gt;Git starts tracking the project&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Staging with git add
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Staging&lt;/strong&gt; is the process of preparing changes before a commit.&lt;/p&gt;

&lt;p&gt;After creating or changing a file, I need to tell git which changes I want to include in my next commit.&lt;br&gt;
This is done by using the &lt;code&gt;git add&lt;/code&gt; command. &lt;/p&gt;

&lt;p&gt;Example, I can use&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;

The &lt;span class="nb"&gt;.&lt;/span&gt; means that Git should stage all the changes &lt;span class="k"&gt;in &lt;/span&gt;the current folder.

Also can stage one specific file by using its name:
Bash
git add README.md

After using git add, the changes are placed &lt;span class="k"&gt;in &lt;/span&gt;the staging area and are ready to be committed.

&lt;span class="k"&gt;**&lt;/span&gt;Committing with git commit&lt;span class="k"&gt;**&lt;/span&gt;
After staging my changes, the next step is to commit them. 
A &lt;span class="k"&gt;**&lt;/span&gt;commit&lt;span class="k"&gt;**&lt;/span&gt; is like a saving version or checkpoint of my project. It allows Git to keep a record of the changes I have made.

To create commit, I use the following &lt;span class="nb"&gt;command&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;p&gt;the &lt;strong&gt;-m&lt;/strong&gt; allows me to add a message describing what I have committed. The message should briefly explain what the changes are&lt;br&gt;
For example&lt;br&gt;
Bash&lt;br&gt;
git commit -m "Add README file"&lt;/p&gt;

&lt;h3&gt;
  
  
  What is SSH
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;SSH&lt;/strong&gt; stands for Secure Shell. &lt;br&gt;
It is a secure way of connecting my computer to git hub. In Git, SSH can be used to connect my local repository to a GitHub repository. &lt;br&gt;
It uses SSH keys to verify the connection between my computer and GitHub.&lt;/p&gt;

&lt;p&gt;Once the connection is set up you can use commands such as&lt;br&gt;
Bash&lt;br&gt;
git push &lt;br&gt;
to send your GitHub securely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connecting the project to GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After creating a repository on GitHub, I need to connect it to the project on my computer. This allows Git to know where my project should be sent when i want to upload my work.&lt;br&gt;
I can connect my local repository to GitHub by using the &lt;code&gt;git remote add&lt;/code&gt; command. Example:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
git remote add origin git@github.com:ninadavid4/my-first-project.git
Here, **origin** is the name given to the GitHub repository. The SSH address after origin tells git where the remote repository is located.
I can check if the connection has been added by using 
Bash
git remote -v
This shows the GitHub repository connected to my local project.

Then later, when you use:
Bash 
git push

Git knows where to send your commits.

##Conclusion
In this project, I learned how to take a project from a local folder on my computer and connect it GitHub using Git and SSH. I learned how to create a Git repository, stage changes using `git add`, save them using `git commit`, and connect the project to a remote GitHub repository. I also learned that SSH provides a secure way for my computer to communicate with GitHub.
&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>
