Find latest git tag from the remote git repository
问题 I have to get the latest git tag from the remote git repository. I have used following command for finding the latest tag git ls-remote --tags xxxxx@xxxx.xxxx.net:xxxx.git |grep "\."|grep -v -|grep -v {| sort -n -t. -k3 -k4 This gives me following output c8be4313ae8261214acb6d3d41f9ece8d47a4ad5 refs/tags/v0.2.1 9e776cff51a8bb15f0539b852a819723d1e37c69 refs/tags/v0.2.2 ee1f173f4e7da0996af9f7c91e0952bec8c2358b refs/tags/v0.1.3 5d6777bf2b2e5bae41ae9ab966320c691c1f2ee2 refs/tags/v0.1.4