Last active
September 6, 2018 21:00
-
-
Save mauroartizzu/56800f5e14ad938af136d6198bd6cada to your computer and use it in GitHub Desktop.
[Tar-Zip Current Commit Hash] Tar-Zip Recursively excluding folders with current commit filename #tar #zip #git #commit
This file contains 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
tar --exclude='*.git' --exclude='node_modules' --exclude='vendor' -zcvf `git rev-parse HEAD`.tgz * | |
zip -r `git rev-parse HEAD`.zip . -x *.git* vendor/\* node_modules/\* *.idea* *.vscode* *.sonarlint* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment