git修改版本发布时间

一、场景

          发现git版本发布时,服务器时间有误,需要修改。

二、解决

(1)准备

    时间戳转换网址:http://shijianchuo.wiicha.com/

(2)SQLite 数据库

    连接到安装git的服务器,修改版本表:

[root@app-container ~]# su - xx

[xx@app-container ~]$ cd /var/gogs/data/

[xx@app-container data]$ sqlite3  gogs.db

SQLite version 3.7.17 2013-05-20 00:56:22

Enter ".help" for instructions

Enter SQL statements terminated with a ";"

sqlite>

sqlite>update release set created_unix=1713251440 where tag_name='V1.1-20240416';

(3)登录到git查看,版本发布时间已更新

相关推荐

  1. git修改版本发布时间

    2024-05-10 10:40:03       30 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-10 10:40:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-10 10:40:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-05-10 10:40:03       82 阅读
  4. Python语言-面向对象

    2024-05-10 10:40:03       91 阅读

热门阅读

  1. 05_kafka-整合springboot

    2024-05-10 10:40:03       28 阅读
  2. iOS 让APP支持横竖屏

    2024-05-10 10:40:03       26 阅读
  3. C++工厂模式

    2024-05-10 10:40:03       31 阅读
  4. iOS block处理button的点击事件

    2024-05-10 10:40:03       34 阅读
  5. Windows MySQL本地服务器设置并导入数据库和数据

    2024-05-10 10:40:03       29 阅读
  6. React 之 组件之间共享值useContext使用(十五)

    2024-05-10 10:40:03       36 阅读
  7. Node.js爬虫在租房信息监测与分析中的应用

    2024-05-10 10:40:03       32 阅读
  8. uniapp app端如何使用live-pusher实现camera效果

    2024-05-10 10:40:03       26 阅读
  9. 安卓uir转二维码保存本地

    2024-05-10 10:40:03       35 阅读
  10. 基本数据类型

    2024-05-10 10:40:03       29 阅读