Kritim Yantra
Apr 26, 2025
If you’re new to coding, web development, or just want to keep track of your projects better, Git is one of the best tools you can learn.
In this blog post, I’ll explain Git in very simple terms — no complex words, no confusing commands — just a clean, beginner-friendly guide that you can actually understand and use.
Imagine you are writing a story in a notebook.
After a few pages, you decide to change the ending. But what if you realize later that your original ending was better?
Wouldn’t it be great if you could go back to any version you wrote before?
That’s exactly what Git helps you do — save different versions of your work and go back whenever you want.
In technical words:
Git is a version control system.
It keeps track of changes in your files, lets you save different versions, and helps you work with other people easily.
Term | Simple Meaning |
---|---|
Repository (repo) | A project folder managed by Git. |
Commit | Saving a version of your work. Like clicking "Save" with a comment. |
Branch | A copy of your project where you can make changes without touching the main version. |
Merge | Adding changes from one branch into another. |
Clone | Downloading a copy of a Git project. |
Push | Sending your changes to a remote server (like GitHub). |
Pull | Downloading the latest changes from a remote server. |
After installing Git, you need to tell Git who you are:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
This will link your name and email to your commits.
Make a new folder anywhere on your computer, like:
MyFirstGitProject
Navigate to your folder:
cd path/to/MyFirstGitProject
Turn your folder into a Git repository:
git init
You’ll see a message:
Initialized empty Git repository
Awesome! Git is now watching your folder.
Create a file, like:
hello.txt
Write something inside it, like "Hello Git!".
See what’s happening:
git status
You’ll see that hello.txt
is an untracked file.
Tell Git to watch this file:
git add hello.txt
Now save your work with a message:
git commit -m "First commit: Added hello.txt"
Congratulations! 🎉 You just saved your first version!
After you change a file, you can:
git status
git diff
git add filename
git commit -m "Describe what you changed"
GitHub is like a social network for code.
You can upload your Git projects there for free and access them from anywhere.
How to connect your project to GitHub:
git remote add origin https://github.com/yourusername/your-repo-name.git
git branch -M main
git push -u origin main
Now your project is safely online!
Action | Command |
---|---|
Start Git in a folder | git init |
See what's going on | git status |
Add files to Git | git add filename |
Save changes | git commit -m "message" |
Connect to GitHub | git remote add origin URL |
Send to GitHub | git push -u origin main |
Git might seem strange at first, but after a few days of practice, it will feel natural.
It’s like learning how to ride a bicycle — wobbly in the beginning, but smooth and easy later.
If you keep practicing Git every day, you will soon become super comfortable with it!
No comments yet. Be the first to comment!
Please log in to post a comment:
Sign in with Google