Created
February 4, 2014 12:17
-
-
Save denvis/8802605 to your computer and use it in GitHub Desktop.
git version tag file hook
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
Version file hook | |
normal repo | |
cd .git/hooks | |
nano pre-commit | |
#!/bin/sh | |
git describe --always --tag > version.txt | |
git add version.txt | |
chmod +x pre-commit | |
Submodule Repo | |
inside submodule repo folder | |
git rev-parse --git-dir | |
cd "output from above" (/Users/<...>/.git/modules/www/app/Plugin/CategoryManager) | |
now same steps as in normal repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment