From Code to Performance

Common Questions Beginners Have

Q: Why not just edit the main branch?

A: Because branching protects your project. If something breaks, it only affects your branch, not the main one.



Q: What if I make a mistake in a commit?

A: You can always make another commit to fix it — Git tracks history.



Q: Do I need to know Git commands for this tutorial?

A: No — GitHub lets you do all of this in the browser. But later, you’ll want to learn the Git command line for more control and flexibility.



Q: What is a commit?

A: A commit is a saved change to your project. Think of it like a snapshot of your work at a specific moment.



Q: What is a repository?

A: A repository (or repo) is a folder that stores your project files along with their full version history.



Q: What is a branch?

A: A branch is a separate version of your project where you can safely experiment with changes without affecting the main project.



Q: What is a pull request?

A: A pull request asks to merge your changes from one branch into another (usually into the main branch). It also allows others to review your changes before they are merged.



Q: What happens after a pull request is approved?

A: Once approved, your changes are merged into the main branch and become part of the official project.



Q: Can multiple people work on the same project at the same time?

A: Yes. Git is designed for collaboration, allowing multiple developers to work on different branches and combine their changes later.



Q: What happens if two people edit the same file?

A: Git may create a merge conflict. This means Git needs help deciding which change should be kept.



Q: What is version control and why is it important?

A: Version control tracks changes to files over time. It allows you to see what changed, who changed it, and revert to earlier versions if necessary.



Q: Can I undo changes in Git?

A: Yes. Git keeps a full history of changes, so you can revert files or return to earlier versions of your project.



Q: Is GitHub the same as Git?

A: No. Git is the version control system, while GitHub is a platform that hosts Git repositories and provides collaboration tools.



Q: Do I need to install anything to use GitHub?

A: No. You can use GitHub directly in your browser. However, many developers install Git locally to work more efficiently.