Workflow Flashcards
Someone has pointed out a typo in your work. What’s the best way to resolve it?
- just fix the typo in master, as it’s a really simple fix
You’re reviewing a branch that a coworker has worked on (having pulled it from a remote repository) when you notice a problem with their work. It seems simple enough to fix; how do you handle it?
- fix the bug, commit your change, and push your change back up to the remote so your coworker can see it
You’re tasked with adding a new feature to your project. You’ve got a plan for how you want to attack it - what’s your first step before you start working?
- create a new branch named after the feature to work in
You’re knee-deep in a major change to your project and you are struck with sudden inspiration - maybe there’s a better way to do this. You want to experiment with this new idea - how should you proceed?
- create a new branch based off of master and start again with this new idea
You’re in the middle of a major change to your project, which is a website that’s currently live with hundreds of users. You and your team are using the “master” branch as the version that’s currently live on the site. When one of your users reports a bug with the site, what do you do?
- check out the master branch and try to reproduce the problem