I want to display the Git version on my site.
How can I display a semantic version number from Git, that non-technical users of a site can easily reference when raising
Simple way:
$rev = exec('git rev-parse --short HEAD');
$rev = exec('git rev-parse HEAD');