make git rebase safe on osx

see this article http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/