git檢出特定日期的版本


參考來源: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查看

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM