Beginner friendly article on Git bash and Git hub.

Published: (January 18, 2026 at 04:53 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for Beginner friendly article on Git bash and Git hub.

What are Git and GitHub?

Git is a version‑control system that intelligently tracks changes to files.
GitHub is a cloud‑based platform where you can store, share, and collaborate on code.
Projects are stored in repositories.

Installing Git Bash

  1. Download Git from the official website (or via the Microsoft Store for Windows users).
  2. Run the installer and follow the prompts.
    • Ensure Git Bash and Git GUI are selected.
    • Choose your default editor (e.g., Visual Studio Code).
    • Select the option to use Git from the command line and complete the installation.

Verify the installation

git --version

Configuring Git

git config --global user.name "STEVE"
git config --global user.email "steveandrew97@gmil.com"

Confirm the configuration

git config --global --list

Generating an SSH Key (for password‑less GitHub access)

ssh-keygen -t ed25519 -C "steveandrew97@gmail.com"
  • Press Enter to accept the default file location.

Start the SSH agent

eval "$(ssh-agent -s)"

Add the SSH key to the agent

ssh-add ~/.ssh/id_ed25519

Display the public key (to add to GitHub)

cat ~/.ssh/id_ed25519.pub

Pushing Code to GitHub

  1. Open your project folder in a terminal.

  2. Initialize a repository:

    git init
  3. Check the status:

    git status
  4. Add files:

    git add .
  5. Commit changes:

    git commit -m "My first commit"
  6. Connect to the remote repository:

    git remote add origin https://github.com/username/repository-name.git
  7. Push the code:

    git push -u origin main

The code will now appear on GitHub.

Pulling Code from GitHub

Pulling retrieves the latest version of the project:

git pull origin main

Useful when collaborating with others or switching devices.

Tracking Changes with Git

  • See changed files:

    git status
  • View exact changes:

    git diff
  • Review commit history:

    git log

Summary

Git enables developers to track, store, and manage changes to their code, while GitHub provides a collaborative platform for sharing and working together on projects.

Back to Blog

Related posts

Read more »

Git Essentials for Beginners

Overview This guide introduces beginners to the core concepts of Git, the leading version control system. You’ll learn what version control is, why it matters,...