Skip to content

Instantly share code, notes, and snippets.

@romanz
Created June 15, 2011 13:28
Show Gist options
  • Save romanz/1027087 to your computer and use it in GitHub Desktop.
Save romanz/1027087 to your computer and use it in GitHub Desktop.
Git commit information from MATLAB
function v = version()
[~, version] = git('--no-pager', 'log -n1 --format=format:"%h (%ci)"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment