Git Tidbits

Alias for colored diff

Use icdiff for colorized diff. First brew install icdiff if icdiff is not already installed.

git config --global \
  alias.clrdiff \
  "difftool --extcmd 'icdiff --highlight --line-numbers --numlines=3 --tabsize=2 --cols=135'"

Usage: git clrdiff

Delete Local and Remote Branches

git checkout <old_name>
git branch -m <new_name>
git push origin -u <new_name>
git push origin --delete <old_name>

Usage: git clrdiff