Urgent.News

What's breaking now, across thousands of outlets.

Tech

My First Github Project:From a Local Folder to GitHub Using Git and SSH

Introdction I always knew that GitHub is where developers keep and share their projects but I have always wondered how developers get the projects from their computers onto GitHub.When I started learning Git aeverything started falling into place. I recently worked on my first GitHub project using Git, Git bash, GitHub and SSH key. Before I explain what I did, I first wanted to understand what…

The author's first GitHub project involved transferring a local folder onto GitHub using Git, Git Bash, and an SSH key. To begin, they created a folder named "Kenya-Hospitals-Records-Analysis" using the "mkdir" command, and then moved into that folder with "cd". They then created two files and folders: a "Data" folder and a "README.md" file using "mkdir" and "touch" commands, respectively.

The "ls" command was used to verify the creation of these items. Next, they initialized a Git repository in their project folder with "git init", which created a hidden Git repository. They checked their project's status with "git status", staged all files with "git add .", and then committed those changes with "git commit -m First commit".

After this initial commit, they connected their local repository to GitHub by adding the GitHub repository with "git remote add origin git@github.com:username/Kenya-Hospitals-Records-Analysis.git", where "username" is the GitHub username. They then verified this connection with "git remote -v". Finally, they pushed their committed changes to GitHub using "git push -u origin main", which uploaded their project.

Upon opening GitHub, they found their "Data" folder and "README.md" displayed, confirming their successful upload. This experience provided the author with foundational knowledge about using Git, GitHub, Git Bash, and SSH keys.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

Chinese Robot Beats Usain Bolt's 100m World Record

A Chinese humanoid robot finished a 100-meter practice race in just 9.32 seconds, beating the human world record.

  • Chinese humanoid robot Lightning completed 100m race in 9.32 seconds.
  • Surpassed Usain Bolt's 2009 world record of 9.58 seconds.
  • Event marked milestone in artificial intelligence and humanoid robotics.

More from Sunday 23 August →