Last active
May 15, 2019 12:33
-
-
Save migcosta/689a09d18b65f569e3e61a9bbbdd8a83 to your computer and use it in GitHub Desktop.
GIT: create a version file for non versioning users (it will need a new commit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#file location .git/hooks/ | |
filename="$(git rev-parse --show-toplevel)/version.txt"; | |
DATE=`date +%Y%m%d-%H%M%S` | |
#DATE=`date +%T` | |
echo "$DATE" > "$filename"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment