Skip to content

Instantly share code, notes, and snippets.

@stvdilln
Last active January 11, 2021 17:44
Show Gist options
  • Save stvdilln/20b139a2573229db61de8157be1205a2 to your computer and use it in GitHub Desktop.
Save stvdilln/20b139a2573229db61de8157be1205a2 to your computer and use it in GitHub Desktop.
Cloning Terraform-AzureRM-Samples with Submodules
steve_dillon@Azure:~$ git clone git://github.com/persistentsystems/terraform-azurerm-samples.git
Cloning into 'terraform-azurerm-samples'...
steve_dillon@Azure:~$ cd terraform-azurerm-samples/
steve_dillon@Azure:~/terraform-azurerm-samples$ git submodule init
Submodule 'submodules/terraform-azurerm' (git://github.com/persistentsystems/terraform-azurerm.git) registered for path 'submodules/terraform-azurerm'
steve_dillon@Azure:~/terraform-azurerm-samples$ git submodule update
Cloning into '/home/steve_dillon/terraform-azurerm-samples/submodules/terraform-azurerm'...
Submodule path 'submodules/terraform-azurerm': checked out '0fe1907fc7bb48ea989893715a1532f5b5879421'
steve_dillon@Azure:~/terraform-azurerm-samples$ cd submodules/terraform-azurerm/
steve_dillon@Azure:~/terraform-azurerm-samples/submodules/terraform-azurerm$ git fetch --all --tags
Fetching origin
steve_dillon@Azure:~/terraform-azurerm-samples/submodules/terraform-azurerm$ git tag -n
v0.1.2 bulk conversion, removing all v1.x and move lastest version to V1, we will version with tags
v0.1.3 bulk conversion, removing all v1.x and move lastest version to V1, we will version with tags
v0.1.4 fix internal reference
v0.1.5 trival change to show tagging
steve_dillon@Azure:~/terraform-azurerm-samples/submodules/terraform-azurerm$ git pull origin v0.1.5
From git://github.com/persistentsystems/terraform-azurerm
* tag v0.1.5 -> FETCH_HEAD
Updating 0fe1907..3a5a80a
Fast-forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment