8 lines
212 B
Bash
8 lines
212 B
Bash
#!/bin/bash
|
|
|
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
|
commit=$(git log -1 --pretty=%B)
|
|
hex=$(git rev-parse --short HEAD)
|
|
|
|
echo "{\"branch\": \"$branch\", \"commit\": \"$commit\", \"hex\": \"$hex\"}" > info.json
|