'is their a way to clone latest tag instead of cloning master everytime
is their any way to clone latest tag instead of cloning branch every time and without using any shell script. Like we can use direct cli.
Solution 1:[1]
Try
git clone -b <tag> --single-branch <url>
If you don't need the whole history, create a shallow clone with --depth <n> (which implies --single-branch)
git clone -b <tag> --depth 1 <url>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ElpieKay |
