Giter Site home page Giter Site logo

git_pairs_lesson's Introduction

Git Flow for Pairs

Person A

  • 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

Person B

  • 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 (replace xy with your initials)
  • Unskip test 3. can deposit money in bank_account_spec.rb file
  • Run rspec to check errors
  • Add/revise code to deposit method in BankAccount class
  • Repeat steps as needed to pass test
  • Commit and push branch to Github
  • Create Pull Request on GitHub

Person A

  • Review and comment on Person B’s Pull Request
  • Merge Person B’s Pull Request
  • Create new branch withdraw_ab (replace ab with your initials)
  • Unskip tests 4. can withdraw money and 5. cannot overdraw account in bank_account_spec.rb file
  • Run rspec to check errors
  • Add/revise code to withdraw method in BankAccount class
  • Repeat steps as needed to pass test
  • Commit and push branch to Github
  • Create Pull Request on GitHub

Person B

  • Review and comment on Person A’s Pull Request
  • Merge Person A’s Pull Request

Both Persons

  • 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
  • Unskip test 6. can verify account details in bank_account_spec.rb file
  • Run rspec to check errors
  • Add/revise code to verify? method in BankAccount class
  • Repeat steps as needed to pass test
  • Commit and push branch to Github
  • Create Pull Request on GitHub

Person A

  • Review and comment on Person B’s Pull Request
  • Merge Person B’s Pull Request

Person B

  • Review and comment on Person A’s Pull Request
  • Merge Person A’s Pull Request
  • uh oh...

git_pairs_lesson's People

Contributors

aleish-m avatar epintozzi avatar shawnl93 avatar megstang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.