git:克隆指定tag版本 需求解决办法 需求 需要克隆SpringBoot 2.2.12源码,但是克隆下来的是最新的版本。 解决办法 命令: git clone --branch tags git地址 用法: git clone --branch v2.2.12.RELEASE https://github.com/spring-projects/spring-boot.git