initialize repo
clean up after git corruption