Git: The tool most software teams use to keep track of every change made to the code. It lets you see history, undo mistakes, and work on the same project as others without overwriting each other's work.
Example
Three interns work on the same project. Each makes changes on their own branch, commits them with Git, and merges them through reviewed pull requests, without anyone's work being lost.
Why Teams Use Git
- History: every change is recorded with who made it, when, and why.
- Undo: you can go back to any earlier version.
- Collaboration: many people work in parallel on branches.
- Review: changes are checked before they are combined, through pull requests.
The Everyday Git Workflow
| Step | Command |
|---|---|
| Get the project | git clone URL |
| Get the latest changes | git pull |
| Start a task | git switch -c feature/task-name |
| Save your work | git add . then git commit -m "message" |
| Share it | git push |
| Check status | git status and git log |
Many interns could write decent code but had never used Git with anyone else. The ones who had practised branches and pull requests on their own projects were productive in their first week instead of their third.
From the interview roomDhaivat Ajwaliya, 16+ years interviewing interns
Git vs GitHub
Git is the tool on your computer. GitHub is a website that stores Git repositories online and adds team features such as pull requests and issues. GitLab, Bitbucket, and Azure Repos are similar services. Companies may use any of them, but Git underneath is the same.
Git for Interviews and Internships
Interviewers often ask about commit vs push, merge vs rebase, and how you resolve a merge conflict. More importantly, using Git properly in your own projects, with meaningful commits on GitHub, shows you are ready to work in a team.
Related terms
- GitHub: a website that hosts Git repositories.
- Repository: a project tracked by Git.
- Commit: a saved snapshot of changes in Git.
- Branch: a separate line of work in Git.
- Version Control: the general category Git belongs to.
Previous term: Generative AI | Next term: GitHub
Related guides
- Build a GitHub Portfolio That Gets You Internship Interviews
- What to Do in Your First Week of an IT Internship
- DevOps Interview Questions Test
Frequently asked questions
What is Git used for?
Git tracks changes to code, keeps a full history, lets you undo mistakes, and lets many people work on the same project safely.
What is the difference between Git and GitHub?
Git is the version control tool on your computer. GitHub is a website that hosts Git repositories and adds collaboration features.
Do I need to learn Git for an internship?
Yes. Almost every software team uses Git, and basic commands are expected from interns.
What Git commands should a beginner learn?
clone, status, add, commit, push, pull, branch or switch, merge, and log.
Explore more internship terms
The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.
Browse all 199 terms