View source: R/read_git_version.R
read_git_version | R Documentation |
Read most recent git SHA for the current working directory
read_git_version()
Returns a list with components 'sha' (the first 6 chars of the most recent git commit SHA) and the date of last update. If the command fails (for example, this is not a git repos), it returns "unknown" for both.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.