参考来源:https://blog.csdn.net/lazycheerup/article/details/84951906

本地使用gitblit搭建的代码服务器,目前需要找到指定日期的版本,并且进行维护。

1、检出最新版

git clone https://xxx@1.1.1.1:8443/r/yyyy.git

git检出特定日期的版本

 

 2、切换到某个Tag

找到特定日期的提交ID

git检出特定日期的版本

 

 打开后获得

git检出特定日期的版本

 

 

更新id为d4421380fedb0d57f324309ca53e5f548a6e972c

新建分支

git checkout -b KunPengCloud d4421380fedb0d57f324309ca53e5f548a6e972c

git检出特定日期的版本

 

 

git checkout KunPengCloud

Already on 'KunPengCloud'

git push origin KunPengCloud

git检出特定日期的版本

 

 

git branch -a

* KunPengCloud
master
remotes/origin/HEAD -> origin/master
remotes/origin/KunPengCloud
remotes/origin/master

返回gitbilit查看

git检出特定日期的版本

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案