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-feature
and checkout to itgit checkout -b first-feature
- Add a text file to the root of this project called
first-feature.txt
touch first-feature.txt
- Add and commit this change
git add . git commit -m 'feat: Add first-feature.txt'
- Push up the
first-feature
branchgit push origin first-feature
- Create a pull request for merging
first-feature
intomain
- Merge the pull request
- In your local repository, checkout to your
main
branchgit checkout main
- Pull the merged changes into your local
main
branchgit pull origin main
- Create a new branch off of
main
calledsecond-feature
and checkout to it - Add the text
second feature
to thefirst-feature.txt
file - Add and commit this change
- Push up the
second-feature
branch, create a PR to main and merge it - Checkout to
main
locally and pull from GitHub to update - Repeat steps 11-15 several times to get more experience working with pull requests