Fork and clone
This is the repeatable starting point for a pull request to the registry repository.
1. Fork on GitHub
Open the Pets registry repository, select Fork, keep your account as the owner, and create the fork.
Your fork will look like:
text
https://github.com/YOUR-USERNAME/petsReplace YOUR-USERNAME in the commands below with your GitHub username.
2. Clone your fork
bash
git clone https://github.com/YOUR-USERNAME/pets.git
cd pets3. Add the official repository as upstream
bash
git remote add upstream https://github.com/pets-registry/pets.git
git remote -vYou should see:
originpointing to your fork.upstreampointing topets-registry/pets.
4. Start from current main
bash
git fetch upstream
git switch main
git reset --hard upstream/mainOnly use reset --hard here if you have no uncommitted work on your local main branch. Create a branch before making changes.