Mercurial,Git and SVN branch in shell prompt

March 7, 2011

It’s usual deal with some branches if your project is big, and sometimes could be pretty dangerous changing, commiting and merging between branches, in our actual project we have three: default, stable and experimental. Last week I was commiting to default and I had to resolve a bug on stable, merge it on default, hours after merge the default changes to stable, in order to make a new production release, and merge also with experimental with their changes… so I had to be very careful… I though it were so cool have the branch in the shell prompt, and seems more people thinks like me, I discovered http://sjl.bitbucket.org/hg-prompt/ it doesn’t only show the branch, also the status, bookmarks and more… really useful.

There are also for Git and SVN:

http://hocuspokus.net/2009/07/add-git-and-svn-branch-to-bash-prompt/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: