參考來源:https://blog.csdn.net/lazycheerup/article/details/84951906
本地使用gitblit搭建的代碼服務器,目前需要找到指定日期的版本,並且進行維護。
操作步驟
1、檢出最新版
git clone https://xxx@1.1.1.1:8443/r/yyyy.git
2、切換到某個Tag
找到特定日期的提交ID
打開后獲得
更新id為d4421380fedb0d57f324309ca53e5f548a6e972c
新建分支
git checkout -b KunPengCloud d4421380fedb0d57f324309ca53e5f548a6e972c
git checkout KunPengCloud
Already on 'KunPengCloud'
git push origin KunPengCloud
git branch -a
* KunPengCloud
master
remotes/origin/HEAD -> origin/master
remotes/origin/KunPengCloud
remotes/origin/master
返回gitbilit查看