News for hackers. Stuff that matters.
Re:GitFlow considered harmful by Jacqued on Friday June 19, 2015 @12:49PM (#9746046)
We've been fine using rebase on already pushed branches. This comes from the understanding that a feature branch belongs to one developer, ever, and that no one else is supposed to work off of it (or at their own peril).

Everyone knows that it's "my branch" and that they're absolutely not supposed to use it for anything until it's merged back into master or whatever authoritative branch.

Re:GitFlow considered harmful by seanp2k2 on Friday June 19, 2015 @02:30PM (#9746703)
If you're having a person own a branch, implementing it in their fork would probably make more sense: https://www.atlassian.com/git/tutorials/comparing-workflows

We using the forking model for bigger projects with more developers, and the branching model for smaller projects. It works out very nicely.

Re:GitFlow considered harmful by aoeuasdf1 on Friday June 19, 2015 @01:59PM (#9746527)
Ok, that makes sense... but then why bother pushing the branch in the first place?
Re:GitFlow considered harmful by yellowapple on Friday June 19, 2015 @04:39PM (#9747538)
For me, it's because I hop between development machines, and pushing/pulling a branch is much easier than the alternative of synchronizing files manually among said machines.

Also, so that if something goes awry with my dev machine for whatever reason, at least my work is saved.

Also, to make it easier for a colleague to review my code before it gets merged into something.

Also, becuase it means I can use GitHub's PR system instead of doing it on my machine (thus providing some additional record that my code got merged in, and providing an avenue for the merge itself to be reviewed and commented on).

Re:GitFlow considered harmful by sopooneo on Friday June 19, 2015 @03:58PM (#9747263)
We have a rule that you never go home at night without pushing your work, even if it's garbage. Put it in a super-short-term feature branch if needed, and push that, but don't leave it imprisoned on your machine.
Re:GitFlow considered harmful by goostavos on Friday June 19, 2015 @08:36PM (#9748457)
There are people who follow this rule, and there are people that think disk failures are what happen to other people.

Few things sting as bad as loosing hours or days worth of work.

Re:GitFlow considered harmful by icebraining on Saturday June 20, 2015 @03:43AM (#9749307)
And there are people who have good backup systems.
Re:GitFlow considered harmful by zastrowm on Friday June 19, 2015 @02:13PM (#9746615)
It allows builds off of that branch, so you can get test feedback etc. It also acts as sort of a backup or a sync if you switch machines.
Re:GitFlow considered harmful by davidp on Friday June 19, 2015 @03:32PM (#9747115)
Code reviews -- you can create a PR on the pushed code, make fixes in response to the comments, rebase, and re-push.
Re:GitFlow considered harmful by girvo on Friday June 19, 2015 @06:48PM (#9748144)
I work on multiple machines. Pushing my branch up even if it's busted code means I can continue work easily on other computers.
Re:GitFlow considered harmful by mbesto on Friday June 19, 2015 @05:29PM (#9747786)
Immediate backup

(I hope I'm not alone in saying this...)

Re:GitFlow considered harmful by mikeash on Friday June 19, 2015 @08:40PM (#9748462)
I kinda hope you are, because backup and source control really should be separate functions. Obviously your source control repository should be backed up, and pushing stuff into it acts to create a backup, but you really should have a separate backup system at work as well, to cover unpushed code as well as all the other useful info contained on your computer.
Re:GitFlow considered harmful by Jacqued on Saturday June 20, 2015 @05:20AM (#9749437)
I use it the same way too. I do not really see why backup should be separate from source control as there is no valuable information on my (work) computer apart from the source code, and I never spend more than a few hours without pushing.
Re:GitFlow considered harmful by mikeash on Saturday June 20, 2015 @05:47PM (#9751145)
Backups of your work computer would close that hours-long window between pushes.
Re:GitFlow considered harmful by afarrell on Friday June 19, 2015 @06:07PM (#9747958)
You are not