- example showing version control for 201 project
- git clone git@github.com:j-hertzog/pull-request-branch.git
- cd pull-request-branch
- use 'git branch' to show you that your on the main branch
- create a new branch off of main
git checkout -b "newbranchname"
- make your desired changes here, modify, create, delete, etc...
- add and commit your changes
git add .
git commit -m "Your message of the changes" - push to your local branch
- it will give you the -set--upstream response, just copy and paste the command they give you
- From here you can make your pull request with the main branch
- make sure you are pulling often to make sure your local code is up to date with the repository.
- pushing to your local branch often is safe and important because it lets us checkout to your branch if you need help with debugging or anything.
- in reality we only have to do this after we merge with main, so I can send out a message after we merge.