Create specific git branches using gitx

Reading Time: 2 minutes

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 branches. 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 decipher the spaghetti.

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.

Know more about us!

0 Shares:
You May Also Like
Read More

Scheduled Notifications

Reading Time: 5 minutesHave you ever wondered how apps like Tinder, Facebook, Reddit and many more send annoying recurrent notifications to…
Read More

VTex Speed Configuration

Reading Time: 3 minutesVTex is a SAAS E-commerce platform that has tons of modules that help out with the implementation of…
administrate gem
Read More

Administrate review

Reading Time: 6 minutesRecently I’ve been playing with Administrate a gem from Thoughtbot, for a new e-commerce project built from scratch.…