git: add rewrite history script