Skip to content

Instantly share code, notes, and snippets.

@rquackenbush
Last active August 25, 2025 18:11
Show Gist options
  • Select an option

  • Save rquackenbush/2f4c1bb16682676004211c58c6dfc460 to your computer and use it in GitHub Desktop.

Select an option

Save rquackenbush/2f4c1bb16682676004211c58c6dfc460 to your computer and use it in GitHub Desktop.
git shortcuts
# Get the lock information for a remote storage blob
az storage blob show --blob-url https://datalabterraformdev.blob.core.windows.net/dlreg-dev-eastus2-01/common.tfstate --auth-mode=login --query metadata.Terraformlockid --output tsv | base64 -d
# move tag
git checkout develop; git pull -p
git tag -f latest-stable
git push --delete origin latest-stable
git push --tags
# force local branch to be the same as origin
git fetch origin
git reset --hard origin/develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment