-
Notifications
You must be signed in to change notification settings - Fork 1
05. Git Cheatsheet
Lucy Stringer edited this page Feb 23, 2021
·
1 revision
This is your handy guide to working from the repo as a group!
- Go to the repo settings
- On the left click on branches
- In protected branches to select you want to protect (main)
- In pull requests subheading : Require pull request reviews before merging
- Create a development branch - helps protect the main branch
- Be consistent with branch naming with prefixes - will agree tomorrow am
- Commit code often - like after every single stage of the TDD cycle (i.e. test, code working, refactor)
-
git checkout -b <insert branch name here>
this creates and moves to new branch - Draw the owl
- Once happy with commit (see step 3) and have pushed.
- Go to Repo owner's repo. Click pull request, select your branch and compare to development branch
- Send pull request to the group chat.
- Other team review and discuss. Once happy we can merge!
- Once both branches have merged to development branch, use git pull to get all info