Skip to content

jr-teaching-repos/pull-request-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Pull Request Practice Repo

This repository contains instructions for how to practice making pull requests.

Steps

  1. Fork this repository to your GitHub profile
  2. Clone the forked version of this repository
  3. Create a branch called first-feature and checkout to it
    git checkout -b first-feature 
    
  4. Add a text file to the root of this project called first-feature.txt
    touch first-feature.txt
    
  5. Add and commit this change
    git add .
    git commit -m 'feat: Add first-feature.txt'
    
  6. Push up the first-feature branch
    git push origin first-feature
    
  7. Create a pull request for merging first-feature into main
  8. Merge the pull request
  9. In your local repository, checkout to your main branch
    git checkout main
    
  10. Pull the merged changes into your local main branch
    git pull origin main
    
  11. Create a new branch off of main called second-feature and checkout to it
  12. Add the text second feature to the first-feature.txt file
  13. Add and commit this change
  14. Push up the second-feature branch, create a PR to main and merge it
  15. Checkout to main locally and pull from GitHub to update
  16. Repeat steps 11-15 several times to get more experience working with pull requests

About

A repo for practicing pull requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published