This repository contains instructions for how to practice making pull requests.
- Fork this repository to your GitHub profile
- Clone the forked version of this repository
- Create a branch called
first-featureand checkout to itgit checkout -b first-feature - Add a text file to the root of this project called
first-feature.txttouch first-feature.txt - Add and commit this change
git add . git commit -m 'feat: Add first-feature.txt' - Push up the
first-featurebranchgit push origin first-feature - Create a pull request for merging
first-featureintomain - Merge the pull request
- In your local repository, checkout to your
mainbranchgit checkout main - Pull the merged changes into your local
mainbranchgit pull origin main - Create a new branch off of
maincalledsecond-featureand checkout to it - Add the text
second featureto thefirst-feature.txtfile - Add and commit this change
- Push up the
second-featurebranch, create a PR to main and merge it - Checkout to
mainlocally and pull from GitHub to update - Repeat steps 11-15 several times to get more experience working with pull requests