If you have started writing code, then it is time to learn Git and GitHub. Modern software development is nearly impossible without these two tools.
What is version control, really?
Have you ever named a file project_final.c, then project_final_2.c, then project_final_real.c? Version control is the solution to that chaos. It keeps a history of every change to your code — and you can go back to any earlier state whenever you want.
- Git — the version control system that runs on your computer.
- GitHub — a platform for keeping your Git projects online and sharing them with others.
Git setup
After installing Git, set your identity once:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
The essential commands
A typical workflow looks like this:
# Start Git in a new project
git init
# See which files have changed
git status
# Add the changes to staging
git add .
# Make a commit (a saved checkpoint)
git commit -m "First commit: added homepage"
Each commit is a snapshot of your code — a safe checkpoint you can return to at any time.

Pushing code to GitHub
After creating a new repository on GitHub, upload (push) your code:
git remote add origin https://github.com/username/repo.git
git branch -M main
git push -u origin main
Now your code is safe online — accessible from any computer.
Why this matters for teamwork
- Several people can work on the same project at once, without anyone breaking another's code.
- Using a
branch, new features can be built separately. - Your GitHub profile gradually becomes a living portfolio.
Employers often look at a candidate's GitHub profile. Build the habit of committing regularly, starting today.
A final tip
Git may feel a little complicated at first, but use it every day and you will quickly get the hang of it. Start practicing with your own small projects — that is the best way to learn.
Discussion
1