root@ubuntu:/opt/gopath/src/github.com/kubeedge/kubeedge# git tag v0.1 v0.2 v0.2.1 v0.3.0 v0.3.0-beta.0 v1.0.0 v1.0.0-beta.0 v1.1.0 v1.1.0-beta.0 v1.2.0 v1.2.0-beta.0 v1.2.1 v1.3.0 v1.3.0-alpha.0 v1.3.0-beta.0 v1.3.1 v1.4.0 v1.4.0-alpha.0 v1.4.0-beta.0 v1.5.0 v1.5.0-beta.0 v1.6.0 v1.6.0-beta.0 v1.6.1 root@ubuntu:/opt/gopath/src/github.com/kubeedge/kubeedge# git checkout v1.3.1 error: Your local changes to the following files would be overwritten by checkout: build/tools/certgen.sh Please commit your changes or stash them before you switch branches. Aborting root@ubuntu:/opt/gopath/src/github.com/kubeedge/kubeedge# git clone -b v1.3.1 https://github.com/kubeedge/kubeedge.git Cloning into ‘kubeedge‘... remote: Enumerating objects: 33, done. remote: Counting objects: 100% (33/33), done. remote: Compressing objects: 100% (27/27), done. remote: Total 48193 (delta 13), reused 14 (delta 6), pack-reused 48160 Receiving objects: 100% (48193/48193), 76.10 MiB | 13.38 MiB/s, done. Resolving deltas: 100% (26258/26258), done. Note: checking out ‘5bfca35b2d99a5c23b953d663723374c3f354fec‘.
新增一份
root@ubuntu:/opt/gopath/src/github.com/kubeedge/kubeedge/kubeedge# git branch
* (no branch)
原文:https://www.cnblogs.com/dream397/p/14638613.html