Michał Urbanek
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:
\[\e[0;34m\]\w\[\e[0;31m\]$(git_prompt)\[\e[0m\]\$ '
git_prompt ()
{
if ! git rev-parse --git-dir > /dev/null 2>&1; then
return 0
fi
git_branch=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
echo " [$git_branch]"
}
# git completion
source ~/.git-completion.bash
git merge master feature
git checkout feature
git rebase master
git checkout feature
git rebase -i master
People can (and probably should) rebase their _private_ trees (their own work). That's a _cleanup_.
But never other peoples code. That's a "destroy history".
Linus Torvalds
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.visual "!gitk"