git - pull requests

12 Feb 2019

extremely late to the game BUT better late than never right? lol


so it’s good practice to do pull requests even if you are the only person working on your own project.

here are a few useful guides to help you avoid git hell:

but the main gist of how to do a pull request is:

1) create a new branch and switch to it

git checkout -b mynewbranchname

2) make your changes on the branch

do your commits and pull and push etc

3) create pull request

on the github page, click on ‘compare & pull request’, and then ‘create pull request’

4) approve and merge

5) switch back to master and git pull

git checkout master

git pull