checkout git history on file open