<?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: Philip Saidi</title>
    <description>The latest articles on DEV Community by Philip Saidi (@saks_007).</description>
    <link>https://dev.to/saks_007</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%2F4070921%2Fcc298991-3623-407c-a5ad-065b33cd52fa.png</url>
      <title>DEV Community: Philip Saidi</title>
      <link>https://dev.to/saks_007</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saks_007"/>
    <language>en</language>
    <item>
      <title># MY FIRST GITHUB PROJECT: FROM A LOCAL FOLDER TO GITHUB USING GIT AND SSH.</title>
      <dc:creator>Philip Saidi</dc:creator>
      <pubDate>Sat, 22 Aug 2026 08:37:21 +0000</pubDate>
      <link>https://dev.to/saks_007/-my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-3lna</link>
      <guid>https://dev.to/saks_007/-my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-3lna</guid>
      <description>&lt;h1&gt;
  
  
  What is git and github
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Git is a command line tool used to create project folders and files that can be linked to your github account repositories.&lt;br&gt;
Github is a website where you put all your projects folders and files to enable collaboration with you team or anyone who can contribute to that project.&lt;br&gt;
Repository is a project folder that contains all of your project files.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Creating A Folder And Files
&lt;/h2&gt;

&lt;p&gt;We first create a folder in your desktop using gitbash.&lt;br&gt;
I followed these steps.&lt;/p&gt;

&lt;p&gt;_&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;open gitbash&lt;/li&gt;
&lt;li&gt;First know the current directory, if you in the Root directory tab change directory to Desktop.&lt;/li&gt;
&lt;li&gt;Make directory with the name of the Folder.&lt;/li&gt;
&lt;li&gt;Change the directory to the current Folder created.&lt;/li&gt;
&lt;li&gt;Make a file in the folder you created, like app.py or README.md.&lt;/li&gt;
&lt;li&gt;Write into the README.md and save.&lt;/li&gt;
&lt;li&gt;Display the contents of the file.&lt;/li&gt;
&lt;li&gt;Return to the previuos folder y_ou created.
Use the code below for reference
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;pwd
cd &lt;/span&gt;Desktop
&lt;span class="nb"&gt;mkdir &lt;/span&gt;Folder name like Kenya-Health-Records
&lt;span class="nb"&gt;cd &lt;/span&gt;Kenya-Health-Records
&lt;span class="nb"&gt;touch &lt;/span&gt;File name with an extension like app.py or README.md
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"# DATA CLEANING USING EXCEL"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;README.md
&lt;span class="nb"&gt;cat &lt;/span&gt;README.md 
&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Pushing Repo To Github Using Gitbash
&lt;/h2&gt;

&lt;p&gt;While still in gitbash current folder I created.&lt;br&gt;
I did this commands on the CLI&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Run git init to initialize a git repo
Run git status to check I repo is ready 
Run git add . 
Run git commit -m "write your commit message"
Run git log --oneline to check the commit message in a oneline
Run git branch to confirm if you are in the main branch
Run git branch -M main to change master to main branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open github account, login and follow these steps.&lt;/p&gt;

&lt;p&gt;_&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a repository and give it a name and description.&lt;/li&gt;
&lt;li&gt;Go to your quick set ip and click SSH.&lt;/li&gt;
&lt;li&gt;Copy the url command&lt;/li&gt;
&lt;li&gt;Open gitbash and make sure you are in the current folder you want to push to github._
Follow this commands below
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Run git remote add origin "paste the url command from github"
Run git remote -v
Run git push - u origin main 
You will be prompted for your paraphrase you created while setting git
You will see a successful message that your folder successful pushed to github
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now go to your github account and refresh.You will see the files and folder you created in the repository you created on github.&lt;br&gt;
Give yourself a clap&lt;/p&gt;

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