Clone Git Tag via PowerShell

Install Git

If you don’t already have Git for Windows:
Download Git for Windows from https://msysgit.github.io/
Choose “Use Git from the Windows Command Prompt” during the installation – this will add Git to your PATH
git install

Alternatively you can manually add Git to your PATH:
Go to System Environment Variables => Advanced => Environmental Variables.
Find path in the variables list and hit edit.
Add the path to Git executable on your machine. In my case it is C:Program Files (x86)Gitcmd

Now Git commands will be recognized in PowerShell on your machine.

Clone the tag

Open PowerShell
Clone repo via https:

git clone https://path/repo.git

 
List available tags:

git tag -l

 
Checkout the tag:

git checkout tag_name

Enjoy!

One thought on “Clone Git Tag via PowerShell

Leave a Reply

Your email address will not be published. Required fields are marked *