Last Updated: February 25, 2016
·
367
· ryrych

Git patches as a 'private branch' alternative

You're git workflow is based on pull requests. You're working on a feature branch, and the feature is not finished. It smells bad. It looks bad. You future would be worse off if the project manager saw it. In 5 minutes you have to go home, and even if there was an option to push to a private branch, GitHub is under DDoS.

Git Patches to the rescue!

With git format-patch you can generate a patch for each commit in the feature branch.

In my case it looked like this:Picture

And after:

Picture