Git and GitHub for Testers: The Basics
Git saves the history of your code. GitHub is a website where you keep a copy online and share it. Testers need both, because test code is code.
Why testers need Git
- You can go back if you break something.
- Teams work on the same tests without overwriting each other.
- CI tools run your tests straight from GitHub.
- A public GitHub project is proof of your skills for employers.
The commands you use daily
git clone <url> # copy a project to your computer
git status # what changed?
git add . # pick all changes to save
git commit -m "add login tests" # save with a message
git push # send to GitHub
git pull # get the latest from GitHub
Branches
A branch is a safe copy where you work on a change. When it is ready, you open a pull request so a teammate can review it before it joins the main code.
Good habits
- Write clear commit messages.
- Commit small and often.
- Never commit passwords. Use a
.gitignorefile and environment variables.
Want to practise this step by step?
Our free Git and GitHub course teaches it in simple English, one day at a time.
Open the free course
Our free Git and GitHub course teaches it in simple English, one day at a time.
Open the free course