Hi all, Noticed a conversation on irc today regarding git, branching, rebasing etc. A couple of tips that most of you probably already know/use but perhaps others don't:
1. Check if your system already includes git completions by typing a command like "git br" and then pressing TAB twice. If it completes to "git branch" then you are set and can move to step 3. 2. Setup git completions. The git rpm usually includes this. You can usually find it using something like "rpm -ql git | grep completion". For me its: /usr/share/doc/git-1.7.11.7/contrib/completion/git-completion.bash Just source that baby in your .bashrc. 3. setup your prompt to include the git helper prompt. This is a life saver in that it shows you which branch you are on (or not on) and shows you if you are in the middle of a merge conflict or rebasing or other good stuff. Add the following to your .bashrc PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' export PS1 Here is a sample session showing I'm on master branch and what happens when I checkout the 4.2 branch. [tpodowd@bertha cloudstack (master)]$ git checkout 4.2 Switched to branch '4.2' [tpodowd@bertha cloudstack (4.2)]$ Have fun. Tom. -- Cloudian KK - http://www.cloudian.com/get-started.html Fancy 100TB of full featured S3 Storage? Checkout the Cloudian® Community Edition!