\documentclass[openany,ngerman]{book}

\usepackage[watermark]{gitstatus}


\begin{document}
    This is a test.
    
    \gitdir 
    
    \gitcommit 
    
    \gitbranch 
\end{document}