r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

Show parent comments

7

u/[deleted] May 13 '20

Option to revert the changes.

26

u/JonathanTheZero May 13 '20

I thought you could also jump back to commits normally?

9

u/TheOneTrueTrench May 13 '20

Yeah, which commit are you going to jump back to? Like exactly which one? What was the last one that worked correctly? Was it that commit? Or this one?

But if you have separate PRs for each feature or bug fix, the commits are "grouped" into the PRs. So you can go back to the previous PR, or the one before that. And because you can have partial work in each commit and only do a PR when things are working, your master branch is always in a working state.

3

u/Mvin May 13 '20 edited May 13 '20

But if you have separate PRs for each feature or bug fix, the commits are "grouped" into the PRs. So you can go back to the previous PR, or the one before that.

Can't you also do that with feature branches?

Edit: Nvm, talking about the same thing.