$ mkdir -p .git/hooks/
$ ln -s `pwd`/hooks/pre-commit .git/hooks/
$ pip install -e .
Do not rebase commits that you have pushed to a public repository.
Refer http://git-scm.com/book/en/Git-Branching-Rebasing#The-Perils-of-Rebasing
Use
$ git pull --rebase