git adapter refactored