How to get list of latest tags in remote git?
问题 There are alot of methods to get latest tags when you have local git repo. But i want to get list of latest tags on remote repo. I know about "git ls-remote", and everything is fine when you use tags like x.y.z (where x,y,z are numbers). But when tags looks like "test-x.y.z" and "dev-x.y.z" i noticed that large amount of "test" tags will pull out any new "dev" tags, which is not correct. So, how would you like solve this? 回答1: With Git 2.18 (Q2 2018), git ls-remote learned an option to allow