Last active
August 25, 2025 18:11
-
-
Save rquackenbush/2f4c1bb16682676004211c58c6dfc460 to your computer and use it in GitHub Desktop.
git shortcuts
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
| # 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 |
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
| # 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