Thursday, May 5, 2011

GIT #1

We use GIT as developer front-end SCM and that syncs with company's own SCM system in backend.

As new GIT user, I find it great!
There are several resources out there about GIT, and here's a small list of sites I used:
Another thing that helps a lot is to setup your terminal to display the GIT branch you're in. This is what I have on my machine's .bash_profile
#cool ls 
alias ls='ls -GF'

source /Users/rolima/Work/git_env.bsh
and git_env.bsh looks like this:
function parse_git_branch
{
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}

function setPrompt
{
  local        BLUE="\[\033[0;34m\]"
  local         RED="\[\033[0;31m\]"
  local   LIGHT_RED="\[\033[1;31m\]"
  local       GREEN="\[\033[0;32m\]"
  local LIGHT_GREEN="\[\033[1;32m\]"
  local       WHITE="\[\033[1;37m\]"
  local  LIGHT_GRAY="\[\033[0;37m\]"

PS1="\u@\h:\w$GREEN \$(parse_git_branch)$LIGHT_GRAY\$ "
PS2='> '
PS4='+ '
}

setPrompt
And this is how it looks like:

More GIT stuff to come

Here we go again...

Starting up again, this time with tips & tricks on iOS and Mobile development in general.

While you wait for new posts, checkout Oracle WebCenter Spaces for iPhone :)