Skip to content

Instantly share code, notes, and snippets.

@mauroartizzu
mauroartizzu / git_laravel_version.sh
Last active September 6, 2018 20:47
[Git Laravel Initial Commit] Output Laravel version to git commit #laravel #git
php artisan -V | git commit -F -
@mauroartizzu
mauroartizzu / tar_git_commit.sh
Last active September 6, 2018 21:00
[Tar-Zip Current Commit Hash] Tar-Zip Recursively excluding folders with current commit filename #tar #zip #git #commit
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*