Refactor .git repository