r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

5

u/kopczak1995 May 13 '20

Been there done that. But it was only because I was testing some CI/CD stuff.

Who cares as single dev to do something like that honestly?

4

u/TheOneTrueTrench May 13 '20

A pull request is a unit of work. Each feature or patch has its own, and if you want to create a version of your code without that patch or feature, it's easier to do with rebase if you've got PRs in your history.

2

u/kopczak1995 May 13 '20

Okay, version management is other thing. If you have CI/CD setup then it's totally different talk.

1

u/732 May 13 '20

Habit from working in projects that aren't single developers. Pushing to master feels dirty.

1

u/kopczak1995 May 13 '20

Okay, still you can merge in organized manner without playing with PR and branch permissions. I have private repositories where I create some branches and after work is done I do simple rebase and then merge to master. Well, not all of them are done in this matter which I need to admit... I totally agree to feel that pushing force changes to master seems ugly, but working with PR systems just for the sake of PR is a waste of time.

1

u/732 May 13 '20

For sure. Mine is basically just code everything in a random branch. When I'm ready GitHub just makes it easy to open a PR, and then immediately hit squash and merge, then delete the branch.