Frequently Asked Questions
Git can be intimidating. We're here to break it down.
What is Git?
Git is a version control system. It's like a time machine for your code that tracks history, allows you to save checkpoints, and lets multiple people work on the same files safely.
What is GitHub?
GitHub is a website that hosts Git repositories online. If Git is your personal notebook, GitHub is the online library where you publish or share it with others.
Difference between Git and GitHub?
Git is the tool installed on your computer that manages code history. GitHub is the cloud service that stores copies of your Git repositories online.
What is a commit?
A commit is a saved snapshot of your project. It permanently records changes you've prepared (staged), allowing you to jump back to this exact state later.
What is a branch?
A branch is a parallel version of your project. It lets you work on new features or experiment without affecting the main timeline (the 'main' branch).
What is push/pull?
'Pushing' uploads your local saves (commits) to an online repository like GitHub. 'Pulling' downloads other people's updates from GitHub to your computer.
Can I undo mistakes?
Yes! Git makes it safe to make mistakes. You can discard unsaved changes (git restore), un-stage files (git reset), or even revert old commits (git revert).
Is this terminal real?
No, this is a safe learning simulator. It accurately processes common Git commands but it won't actually touch the files on your computer. Feel free to experiment!