Click here to Skip to main content
15,917,005 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralGit-Flow Development Code Freeze when Release-XXX? Pin
DarkChuky CR8-Oct-14 8:03
DarkChuky CR8-Oct-14 8:03 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DaveAuld8-Oct-14 9:24
professionalDaveAuld8-Oct-14 9:24 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DarkChuky CR8-Oct-14 9:39
DarkChuky CR8-Oct-14 9:39 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DaveAuld8-Oct-14 10:02
professionalDaveAuld8-Oct-14 10:02 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DarkChuky CR8-Oct-14 11:37
DarkChuky CR8-Oct-14 11:37 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
SkysTheLimit8-Oct-14 11:26
SkysTheLimit8-Oct-14 11:26 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DarkChuky CR8-Oct-14 11:37
DarkChuky CR8-Oct-14 11:37 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
RASPeter9-Oct-14 7:29
professionalRASPeter9-Oct-14 7:29 
I can't speak to the proper way to use Git-Flow, as I'd never heard of it before this post. However, I've been using Git professionally for about 4 years now, so maybe my experience will still be helpful.

I've found that the answer to most questions about using Git is "make a new branch".

Need a release that's "frozen" for QA? Make a new branch for it. There's no need for that to affect any other branch, since you can use cherry-pick to pull just the commit with the bug fix you need from your Dev branch to your QA branch without pulling anything else from Dev (assuming said bug fix doesn't depend on other commits). Alternatively, you can fix the bug on your QA branch and merge that change back to your Dev branch, again without pulling anything from Dev to QA.

Not sure if the thing you're working on should be in the main development branch yet? Make a new branch for it. Feature branches are fantastic, especially if you're working on a feature you aren't entirely sure how to implement. Think of it like a white board you can use to explore possible solutions, and then wipe clean if your current tack doesn't pan out. Plus, you can easily switch back to the main branch any time if, say, there's some bug you need to urgently fix.

Branching and merging are just so easy with Git that it's almost like you should branch by default unless you have some specific reason not to.

That said, I also recommend that you use rebase rather than merge. The reason is because bisect is a fantastic troubleshooting tool and it works better with a linear commit history, which rebase gives you. Some people will make a lot of noise about how merge preserves history and rebase doesn't, but that's a load of rubbish. The history that merge preserves is useless. I have never needed to know what the date was when J Random Dev originally created Commit-X, but I have many times needed to know when Commit-X was added to the branch I'm currently looking at, and rebase makes it easy to see that.
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
gicalle759-Oct-14 22:05
professionalgicalle759-Oct-14 22:05 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
DarkChuky CR16-Oct-14 10:13
DarkChuky CR16-Oct-14 10:13 
GeneralRe: Git-Flow Development Code Freeze when Release-XXX? Pin
RASPeter28-Oct-14 17:20
professionalRASPeter28-Oct-14 17:20 
GeneralCode for fun (hobby) PinPopular
Leng Vang8-Oct-14 7:20
Leng Vang8-Oct-14 7:20 
GeneralRe: Code for fun (hobby) PinPopular
Slacker0078-Oct-14 7:22
professionalSlacker0078-Oct-14 7:22 
GeneralRe: Code for fun (hobby) Pin
_WinBase_9-Oct-14 5:42
_WinBase_9-Oct-14 5:42 
GeneralRe: Code for fun (hobby) Pin
Member 304489110-Oct-14 1:40
Member 304489110-Oct-14 1:40 
GeneralRe: Code for fun (hobby) Pin
_WinBase_10-Oct-14 2:01
_WinBase_10-Oct-14 2:01 
GeneralRe: Code for fun (hobby) Pin
R. Giskard Reventlov8-Oct-14 7:30
R. Giskard Reventlov8-Oct-14 7:30 
GeneralRe: Code for fun (hobby) PinPopular
#realJSOP9-Oct-14 1:57
professional#realJSOP9-Oct-14 1:57 
GeneralRe: Code for fun (hobby) Pin
Bassam Abdul-Baki8-Oct-14 7:34
professionalBassam Abdul-Baki8-Oct-14 7:34 
GeneralRe: Code for fun (hobby) Pin
User 84208-Oct-14 7:37
User 84208-Oct-14 7:37 
GeneralRe: Code for fun (hobby) Pin
harold aptroot8-Oct-14 7:35
harold aptroot8-Oct-14 7:35 
GeneralRe: Code for fun (hobby) Pin
Pualee8-Oct-14 8:09
Pualee8-Oct-14 8:09 
GeneralRe: Code for fun (hobby) Pin
Mike Hankey8-Oct-14 7:37
mveMike Hankey8-Oct-14 7:37 
GeneralRe: Code for fun (hobby) Pin
KP Lee9-Oct-14 12:01
KP Lee9-Oct-14 12:01 
GeneralRe: Code for fun (hobby) Pin
Maximilien8-Oct-14 7:39
Maximilien8-Oct-14 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.