Created
July 24, 2012 19:32
-
-
Save chrisl8888/3172113 to your computer and use it in GitHub Desktop.
Git archive and label it by Y/M/D
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 | |
# create an archive of your git repository | |
# this method is better than just zipping your repo because | |
# it will respect your .gitignore file | |
git archive HEAD --format=zip > latest-$(date +%Y%m%d).zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment