{
  "id": 2664886,
  "title": "My First GitHub Project: From a Local Folder to GitHub Using Git and SSH",
  "url": "https://urgent.news/2026/08/22/my-first-github-project-from-a-local-folder-to-github-using-git-and-2664886",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-22T22:15:01.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/barbz04/my-first-github-project-from-a-local-folder-to-github-using-git-and-ssh-12po"
  },
  "original_language": "en",
  "account": "To set up a GitHub project, begin by verifying that the GitHub username and email are correctly linked to the Git configuration. The commands for this are `git config --global user.name` and `git config --global user.email`.\n\nNext, generate an SSH key using the command `ssh-keygen -t ed25519 -C your_email`. This will create a key saved to a specific file location, such as drive C on a laptop.\n\nTo access the public key, use the command `cat ~/.ssh/id_ed25519.pub`. Then, add this SSH key to the GitHub profile under Settings-Access-SSH and GPG Key- New SSH Key. Provide a title, select the Authentication key type, and paste the entire SSH key. Click Add SSH Key to complete the process.\n\nOnce the SSH key is added, test the connection to GitHub using Git Bash. The command `ssh -T git@github.com` should display a message confirming successful authentication with the GitHub account.\n\nTo push a local folder to GitHub, start by navigating to the desktop using the command `cd Desktop`. Create a new folder titled \"Kenyan Health Records Analysis\" using `mkdir Kenyan Health Records Analysis`. Enter this folder with `cd Kenyan Health Records Analysis`.\n\nCreate an empty README file using the command `touch README.md`. Open this file for editing with `nano README.md`. Edit the file as needed, then save and exit. To initialize a Git repository, run `git init`. Check the current status of files using `git status`.\n\nStage all files for the next commit with `git add .`. Commit the changes using `git commit -m \"First commit on health records\"`. This message describes the initial commit.\n\nCreate a new repository on the GitHub page and copy the provided SSH link. Add this remote repository to your local Git configuration using `git remote add origin SSH_link`. Push all files to the newly created repository on GitHub with `git push -u origin main`. The final link for the GitHub project can be found at https://github.com/Thuita24/Kenyan-Health-Records.git.",
  "summary": "Creating SSH key At first I confirmed that my Github username and email were associated with Git. The commands: github config --global user.name github config --global user.email Generate SSH key To generate the SSH key I ran: ssh-keygen -t ed25519 -C \"my email\" The SSH key is saved to specific file location such as drive C on the laptop. Copy the public key The command: cat ~/.ssh/id_ed25519.pub…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "Dev.to",
        "title": "# MY FIRST GITHUB PROJECT: FROM A LOCAL FOLDER TO GITHUB USING GIT AND SSH.",
        "url": "https://urgent.news/2026/08/22/my-first-github-project-from-a-local-folder-to-github-using-git-and",
        "published": "2026-08-22T08:37:21.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}