I am wondring if it's possible to grep a repo's tags from the github or gitlab without having to clone it, I have a ssh keys to that repo.
For terminal I use this command to list tags for a specific repo I have cloned:
git --git-dir=/root/project-test/.git tag
This didn't work:
git ls-remote git@git.mit.usa.com:s1868/project-test.git --tags
If you wish just to print them on screen as suggested before: git ls-remote --tags
If you want to fetch them to your local repo you simply fetch all:
git fetch --all --prune
. All will fetch all branches and tags, prune will remove the deleted ones.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.