reading-notes

What is Version Control?

✅ Save versions of your work

It records snapshots of your project. If you make a mistake, you can go back to a previous version.

✅ Collaborate with others

Multiple people can work on the same project without overwriting each other’s work.

✅ See who changed what and when

It keeps a history of edits, who made them, and why.

The most common version control system is Git. In short:

Version Control helps you manage, track, and organize changes in your projects — especially code — safely and efficiently.

What is cloning in Git?

When you clone a repository, Git:

Downloads all files

Copies the project history (all commits)

Sets up a connection to the remote repo so you can pull updates and push your changes.

What is the command to track and stage files?

What is the command to take a snapshot of your changed files?

👉 git commit

Example:

git commit -m “Your descriptive message here”

This records a snapshot of everything you’ve staged.

What is the command to send your changed files to Github?

👉 git push

Example:

git push origin main

(Use main or master, depending on your branch name.)