The title section of my LaTeX documents usually look like
\\title{Title}
\\author{Me}
%\\date{} %// Today\'s date will appear when this is commented out.
\
If you have your document controlled inside a git repository, then this can be achieved using the gitinfo package. If correctly configured (which involves adding post-hooks to your git system), you can simply use \gitVtag to call the version number (as embodied in a git tag) or e.g. \gitAbbrevHash to get the abbreviated hash of the current commit of the repo.