refactor git monitor