Beginner friendly article on Git bash and Git hub.
Source: Dev.to

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
- Download Git from the official website (or via the Microsoft Store for Windows users).
- 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
-
Open your project folder in a terminal.
-
Initialize a repository:
git init -
Check the status:
git status -
Add files:
git add . -
Commit changes:
git commit -m "My first commit" -
Connect to the remote repository:
git remote add origin https://github.com/username/repository-name.git -
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.