readme.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. PART 1:
  2. You have worked hard and the result is beautiful.
  3. But somehow there's a bug.
  4. It's late, your partner wants you to go home.
  5. Hell, maybe a good night sleep (or a good night something else)
  6. will help you find that stupid bug.
  7. So you want to go home, but you don't want to leave the work unsaved,
  8. that would be unprofessional. And you're a pro.
  9. So, as the code cannot be merged into master yet, you decide to create a branch.
  10. - Create and checkout a new branch named "file-second"
  11. - Commit the current state
  12. - Push it (remember, the branch does not exists yet on origin)
  13. PART 2:
  14. Your mind is clear and ready to tackle that nasty bug.
  15. As you march to your desk like the conquerant you are, your boss stops you.
  16. There's an urgent fix that needs to go out in prod just. right. now.
  17. - Checkout the branch master
  18. - Pull it to get the last version
  19. - Add a "three" to the file first.txt
  20. - Commit and push the changes to that new file
  21. PART 3:
  22. Now is the time to tackle the problem, let's get back to your work.
  23. - Checkout the branch file-second
  24. PART 4:
  25. Of couuuuurse !
  26. You found it, the 'E' is missing between 'D' and 'F'
  27. After fixing the bug, the awesomeness can be mnerged into master.
  28. - Modify the file so that it's beauty is complete
  29. - Commit the difference
  30. - Push it
  31. - Merge it into master
  32. - Push master
  33. - Brag
  34. PART 5:
  35. You are a good citizen (or at least in this story we assume you are).
  36. You are not working anymore on the branch file-second
  37. - Delete the branch file-second both localy and in origin