Fork the Repository
Fork, clone, branch: the same three moves that start every contribution you'll ever make.
What you'll learn
Forking creates your own copy of the repository under your GitHub account. Cloning downloads your fork to your computer. Branching gives your change its own space, separate from main, so your work stays isolated until it's ready.
Do this
- Click "Fork" on the practice repository.
- Clone your fork to your computer.
- Create a new branch for your change instead of working on
main.
git clone https://github.com/YOUR-USERNAME/pull-first-contribution.git
cd pull-first-contribution
git checkout -b fix-the-issueTry it
Run the commands above, swapping in your GitHub username and a branch name that describes your change.
Check your work
git status shows you're on your new branch, not main.