Skip to content

Instantly share code, notes, and snippets.

@aeldar
Created January 19, 2023 21:55
Show Gist options
  • Save aeldar/a0cab8eb481eff5ff356cb8c184db9c8 to your computer and use it in GitHub Desktop.
Save aeldar/a0cab8eb481eff5ff356cb8c184db9c8 to your computer and use it in GitHub Desktop.
Gegenerate unique and sequential version of the app
#!/bin/sh
COMMIT_COUNT=$(git rev-list --count HEAD)
COMMIT_HASH=$(git rev-parse --short HEAD)
echo ${COMMIT_COUNT}-${COMMIT_HASH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment