Get Git Info

Version 1.0.0.0 (2.94 KB) by Andrew
Provides info about the current git repository, including branch name, url and hash.
1.2K Downloads
Updated 12 Sep 2011

View License

Git is a powerful versioning tool that is compatible with Matlab. Sometimes it is useful to annotate data or figures with information about the current git repository.

This script gets the current git repository branch name and SHA1 hash. It also gets URL of the repositories corresponding remote repository.

Importantly, this script extracts all of the information from the .git/ folder directly, and thus this script does not make any calls to the program git itself.

Cite As

Andrew (2024). Get Git Info (https://www.mathworks.com/matlabcentral/fileexchange/32864-get-git-info), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Source Control Integration in Help Center and MATLAB Answers
Tags Add Tags
Acknowledgements

Inspired: Amplitude Transceiver

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0