Up and Running with Git Transcripts
Chapter: Teamwork: Branches
Lecture: Branching == credit card debit?
0:00 A good analogy for branching is a little bit like credit cards, if all you have is cash,
0:06 it's hard to buy things, it's hard to be really flexible financially, you've got to go to the bank and get more cash if you wanted to buy
0:13 something. Even if you have tons of money in the bank, if you don't have the cash on hand,
0:17 you won't be able to buy the thing and forget internet shopping, that's no good. Right? So credit cards are awesome,
0:23 just like that branches are awesome too. They allow you this flexibility to do all these things.
0:27 I can break off and in parallel I can do all of this amazing work. However, the longer that you stay separated from the main branch,
0:37 the more out of sync you are in space and time with the current development work the harder it is going to be to bring those changes back together,
0:46 just like not never paying off your credit card and letting the balance grow and grow it is not a good thing.
0:52 So you definitely want to make sure that you keep your branches in sync as much
0:57 as possible. So that means it's a feature branch don't stay apart for too long
1:02 There's also some other cool techniques that we can look at that will show you how to pay down that debt as you go.
1:09 But you should think of branching a little bit like credit cards and if you don't pay them off, you don't do the merge on the branch and you don't go
1:19 and pay off your credit card. Similarly bad things are going to accumulate, and it'll be harder when the time comes to finally do that.