A look under the hood: how branches work in Git
Git branches allow you to keep different versions of your code cleanly separated. Here's a look at how they work and why you should know about them.
![](https://cdn.stackoverflow.co/images/jo7n4k8s/production/98a949559eab7bccbe1792edf4600470af293d2f-1200x630.jpg?rect=1,0,1199,630&w=415&h=218&auto=format&dpr=2)
Git branches allow you to keep different versions of your code cleanly separated. Here's a look at how they work and why you should know about them.