Development

Open and watch specific git branches using gitx


It happens, the project and the team grows, and now, there's a bunch of branches in your git repo. It's called branchitis, and it happens to everyone at some point.

If you're lucky enough to be working on a Mac, odds are that you're using gitx to watch over your git repos. You're not?! Shame on you.

Anyway, so, you open gitx, and all you see is a bowl of spaghetti

Bowl of Spaghetti

So, if you want to see a specific branch, you can call gitx from the command line and specify the branch you want to see

$ gitx feature2

One branch

Nothing out of this world here, since you can do the same thing by using the built in dropdown on gitx to select the branch you want to see, but, did you know that you can specify more than one branch?

So, let's say you want to merge the feature2 and the feature5 branch, but first, you want to see how the branches are related. You can call gitx from the command line and specify both branches as the arguments.

$ gitx feature2 feature5

Then you'd get something like this:

Two branches

Cool! You can actually read this first hand, and it's faster than trying to descipher the spaguhetti.

In case you're wondering, yes, you can specify 3 branches, or as many as you'd like to see. Go ahead, try it out.

Hope this helps you in some way,

Cheers.

Agile
What Is a Product Design Sprint and How-To Develop It
Best Practices
De Código, Café y Cervezas – Clean Code
Beginner
ReactJS: Loops in JSX