Git Flow for Pairs
- Create a local git repository
- Link local repo to a GitHub repository (follow all Github instructions)
- Add Person B as a collaborator to the repository
- From the GitHub Repository main page, click on settings
- In the left nav bar, click on Collaborators
- Search for Person B's username and click Add Collaborator
- Check email for invitation to join the project as a collaborator
- Click link in the email and accept the invitation.
- Clone the repository to your local machine.
- Create new branch
deposit_xy
(replacexy
with your initials) - Unskip test
3. can deposit money
inbank_account_spec.rb
file - Run
rspec
to check errors - Add/revise code to
deposit
method inBankAccount
class - Repeat steps as needed to pass test
- Commit and push branch to Github
- Create Pull Request on GitHub
- Review and comment on Person B’s Pull Request
- Merge Person B’s Pull Request
- Create new branch
withdraw_ab
(replaceab
with your initials) - Unskip tests
4. can withdraw money
and5. cannot overdraw account
inbank_account_spec.rb
file - Run
rspec
to check errors - Add/revise code to
withdraw
method inBankAccount
class - Repeat steps as needed to pass test
- Commit and push branch to Github
- Create Pull Request on GitHub
- Review and comment on Person A’s Pull Request
- Merge Person A’s Pull Request
- Checkout local
main
branch - Pull from
main
branch - Create new branches:
- Person A: Create new branch
verify_ab
- Person B: Create new branch
verify_xy
- Person A: Create new branch
- Unskip test
6. can verify account details
inbank_account_spec.rb
file - Run
rspec
to check errors - Add/revise code to
verify?
method inBankAccount
class - Repeat steps as needed to pass test
- Commit and push branch to Github
- Create Pull Request on GitHub
- Review and comment on Person B’s Pull Request
- Merge Person B’s Pull Request
- Review and comment on Person A’s Pull Request
- Merge Person A’s Pull Request
- uh oh...