Getting started with Git and GitHub.

Published: (January 18, 2026 at 03:45 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

Installation

Download the installer from the official site and run it as an administrator, following the prompts.

Git Configuration

git config --global user.name "name"
git config --global user.mail "name@gmail.com"
git config --global --list

The last command confirms that the profile was set up correctly.

Public and Private Key Generation and Setup

SSH keys provide password‑less authentication with GitHub.

Generate a new private SSH key (ED25519)

ssh-keygen -t ed25519 -C "your@email.com"

Retrieve the public key

The public key is stored at:

~/.ssh/id_ed25519.pub

Setting Up the Key on GitHub

  1. Copy the contents of id_ed25519.pub.
  2. In GitHub, navigate to Settings → SSH and GPG keys and paste the key.

Test the Connection

ssh -T git@github.com

Tracking Changes on GitHub Using Git

Clone a repository

git clone https://github.com/username/repository-name.git
cd repository-name

Check status

git status

Add and commit changes

git add .
git commit -m "My first commit"

Push to GitHub

git push origin main

Pull updates from GitHub

git pull origin main

View commit history

git log

Conclusion

This journey into Git and GitHub is just the beginning for me. I’m still learning and figuring things out along the way. I’d appreciate any thoughts, corrections, or additional tips in the comments—especially from fellow learners. Let’s learn and grow together.

Back to Blog

Related posts

Read more »