Jan 162016
 

Although IDE’s will support git, and I’ll use them for things like history comparisons, I find it faster to do a lot of my git management from the command line (merge, rebase, push, pull etc). It’s invaluable to be able to tell which branch you are on when navigating through your workspace from the terminal. In a few easy steps using an OS X software management software package called Homebrew, we can change our git terminal environment on OS X from this:

Default bash
into this:

Git bash

Install brew:

Install git and bash-completion

If you don’t have one already, create .bash_profile in your user home directory and add the following

And that’s it! Since I found myself setting up my developer environment on OS X again, I also configured some global git settings while I’m at it:

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)