\documentclass[10pt,a4paper,article,showtrims]{memoir}
% =====================================================
% This is a tweak to allow this document to be formatted
% even when it doesn't live in an adequately configured
% git repository. Please do not try this at home.
% You have been warned.
% -----------------------------------------------------
\makeatletter
\newcommand{\GI@repo@prefix}{}
\newcommand{\GI@githeadinfo@file}{\GI@repo@prefix./gitPseudoHeadInfo.gin}
\makeatother
% -----------------------------------------------------
% End of tweak
% =====================================================
\usepackage[missing={(Oh my!)},dirty={Oh no!},markifdirty,marknotags]{gitinfo2}
\usepackage{hyperref}
\renewcommand{\gitWrapEmail}[1]{\url{#1}}
\frenchspacing
\begin{document}

\ttfamily
!\gitMark! Mark

!\gitReferences ! References

!\gitVtag ! Vtag

!\gitVtags ! Vtags

!\gitVtagn ! Vtagn

!\gitRel ! Rel

!\gitRels ! Rels

!\gitReln ! Reln

!\gitFirstTagDescribe ! F.T.Describe

!\gitDescribe ! Describe

!\gitTags ! Tags

!\gitDirty ! Dirty

!\gitBranch ! Branch

!\gitRoff ! Roff

!\gitCommitterEmail! C.Email

\end{document}
