git tag

1018 git clone https://github.com/kubernetes/ingress-nginx.git
 
1023 git tag --list
 
1025 git checkout -b controller-v0.44.0
 

root@ubuntu:~/nginx_ingress/ingress-nginx/images/nginx# git checkout  nginx-0.30.0
error: Your local changes to the following files would be overwritten by checkout:
        Makefile
        build/run-in-docker.sh
        images/httpbin/rootfs/Dockerfile
        images/nginx/rootfs/Dockerfile
        rootfs/Dockerfile
Please commit your changes or stash them before you switch branches.
Aborting
root@ubuntu:~/nginx_ingress/ingress-nginx/images/nginx#
原文地址:https://www.cnblogs.com/dream397/p/15080792.html