I’m currently using a modified version of git-prompt that looks something like this:

If you want to try it out, you can download this zip-ball:
Unpack that into your User folder, and add this to your bash .profile:
# Git Prompt - Modified from: http://volnitsky.com/project/git-prompt/ [[ $- == *i* ]] && . ~/git-prompt/git-prompt.sh
Tip: You can open your .profile from your terminal like so:
open ~/.profile
Note: You will need to start a new shell session after editing that file in order to see the changes.
I use Nano as my default bash text editor. If you want that, add this to your .profile:
# Use the nano text editor export EDITOR="nano"
And for the Terminal.app style:

The shell commands (copy-paste):
mkdir Test cd Test/ git init touch somefile git add somefile git commit -m "commit message" echo "hi" > somefile git add somefile git commit -m "second commit" git checkout -b temp echo "hello" > somefile git add . git commit -m "3rd commit"
Pingback: git on the command line « Ramblings