github rewrite