个人技术分享

一、场景

          发现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查看,版本发布时间已更新