Add git logger

This will allow to maintain the history of changes in the head. Thus allow reverting to a previous HEAD state.
@devoncarew