Gitea v1.21.1 中文文档更多组件参见 package.json 编辑器: CodeMirror EasyMDE Monaco Editor 数据库驱动: github.com/go-sql-driver/mysql github.com/lib/pq github.com/mattn/go-sqlite3 github.com/denisenkom/go-mssqldb 请访问 Awesome Gitea BookStack.CN 构建 在使用 Gitea 前,您需要准备一个数据库。Gitea 支持 PostgreSQL(>=10)、MySQL(>=5.7)、SQLite 和 MSSQL(>=2008R2 SP3)这几种数据库。本页将指导您准备数据库。由于 PostgreSQL 和 MySQL 在生产环 境中被广泛使用,因此本文档将仅涵盖这两种数据库。如果您计划使用 SQLite,则可以忽略本章内容。 数据库实例可以与 本,以使某些引擎功能正常工作。出于安全原因,请使用安全密码保护 root (MySQL)或 postgres (PostgreSQL)数据库超级用户。以下步骤假设您在数据库和 Gitea 服务器上都使用 Linux。 1. 对于远程数据库设置,您需要让 MySQL 监听您的 IP 地址。编辑数据库实例上的 /etc/mysql/my.cnf 文件 中的 bind-address 选项为:0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 2nd Edition 2.1.413Rebase vs. Merge Summary Git on the Server The Protocols Local Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Packfiles The Refspec Pushing Refspecs Deleting References Transfer Protocols The Dumb Protocol The Smart Protocol Protocols Summary Maintenance and Data Recovery Maintenance Data Recovery Removing large change in the time since the last publishing has been the development and rise of the HTTP protocol for Git network transactions. Most of the examples in the book have been changed to HTTP from0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Rebase vs. Merge Summary Git on the Server The Protocols Local Protocol The HTTP Protocols The SSH Protocol The Git Protocol Getting Git on a Server Putting the Bare Repository on a Server Small Packfiles The Refspec Pushing Refspecs Deleting References Transfer Protocols The Dumb Protocol The Smart Protocol Protocols Summary Maintenance and Data Recovery Maintenance Data Recovery Removing large change in the time since the last publishing has been the development and rise of the HTTP protocol for Git network transactions. Most of the examples in the book have been changed to HTTP from0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 2nd Edition 2.1.413large change in the time since the last publishing has been the development and rise of the HTTP protocol for Git network transactions. Most of the examples in the book have been changed to HTTP from SSH can use. The previous example uses the https:// protocol, but you may also see git:// or user@server:path/to/repo.git, which uses the SSH transfer protocol. Getting Git on a Server will introduce all of in what basic circumstances you would want (or not want) to use them. Local Protocol The most basic is the Local protocol, in which the remote repository is in another directory on the same host. This0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66HTTP 协议,SSH(Secure Shell)协议及 Git 协议。 在此,我们将会讨论那些协议及哪些情形应该使用(或避免使用)他们。 本地协议 最基本的就是 本地协议(Local protocol) ,其中的远程版本库就是同一主机上的另一个目录。 这常见于团队 每一个成员都对一个共享的文件系统(例如一个挂载的 NFS)拥有访问权,或者比较少见的多人共用同一台电脑 的情况。 后者并不理想 尝试寻找一个服务器的凭证时就会被调用。 $ git credential fill ① protocol=https ② host=mygithost ③ protocol=https ④ host=mygithost username=bob password=s3cre7 $ git credential fill ⑤ protocol=https host=unknownhost Username for for 'https://unknownhost': bob Password for 'https://bob@unknownhost': protocol=https host=unknownhost username=bob password=s3cre7 ① 这是开始交互的命令。 ② Git-credential 接下来会等待标准输入。 我们提供我们所知道的信息:协议和主机名。 ③ 一个空0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66P 协议, SSH(Secure Shell)协议及 Git 协议。 在此,我们将会讨论那些协议及哪些 情形应该使用(或避免使用)他们。 本地协议 最基本的就是 本地协议(Local protocol) ,其中的远程版本库就是同一主 机上的另一个目录。 这常见于团队每一个成员都对一个共享的文件系统(例 如一个挂载的 NFS)拥有访问权,或者比较少见的多人共用同一台电脑的情 况。 后者 尝试寻找一个服务器的凭证时就会被调用。 $ git credential fill ① protocol=https ② host=mygithost ③ protocol=https ④ host=mygithost ① ② ③ ④ ⑤ ▪ username=bob password=s3cre7 $ git credential fill ⑤ protocol=https host=unknownhost Username Username for 'https://unknownhost': bob Password for 'https://bob@unknownhost': protocol=https host=unknownhost username=bob password=s3cre7 这是开始交互的命令。 Git-credential 接下来会等待标准输入。 我们提供我们所知道的信息:协议和主机名。0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













