README.md 256 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# Git Info in Binary
Template project that includes the Git branch and current Git commit hash in the actual binary. This project is built with `cmake` as follows.
```
mkdir build
cd build/
cmake ..
make
```
You can run the binary with:
```
./git-hash
```