Gitea v1.21.1 中文文档服务器错误,页面元素丢失或故障,莫名其妙的页 面布局,等等… 移除或更新不兼容的模板,Gitea Web 才可以正常工作。 从 Docker 升级 从包升级 从二进制升级 小心你的自定义模板 从旧版 Gitea 升级 - 54 - 本文档使用 书栈网 · BookStack.CN 构建 如果你正在运行Gogs 0.9.146以下版本,你可以平滑的升级到Gitea。该升级需要如下的步骤: 使用 gogs backup console 更改为 file 。这表示将日志输出到文件,使得 fail2ban 可以定 期扫描日志内容。 当用户的身份验证失败时,日志中会记录此类信息: 1. 2018/04/26 18:15:54 [I] Failed authentication attempt for user from xxx.xxx.xxx.xxx 1. 2020/10/15 16:08:44 [E] invalid 12. MODE = console 13. FLAGS = stdflags 14. PREFIX = 15. COLORIZE = true 这等同于将所有日志发送到控制台,并将默认的 Golang 日志也发送到控制台日志中。 这只是一个示例,默认情况下不需要将其写入配置文件中。 禁用路由日志,将访问日志(>=Warn)记录到 access.log 中: 1. [log] 20 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 2nd Edition 2.1.413| 23 +++++++++++++++++++++++ lib/simplegit.rb | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+) As you can see, the --stat option prints below each commit entry a list of modified shortname. For instance, if you want to rename pb to paul, you can do so with git remote rename: 54 $ git remote rename pb paul $ git remote origin paul It’s worth mentioning that this changes all remote and merges locally. 6. The maintainer pushes merged changes to the main repository. Figure 54. Integration-manager workflow 127 This is a very common workflow with hub-based tools like GitHub0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413| 23 +++++++++++++++++++++++ lib/simplegit.rb | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+) As you can see, the --stat option prints below each commit entry a list of modified remote and merges locally. 6. The maintainer pushes merged changes to the main repository. Figure 54. Integration-manager workflow This is a very common workflow with hub-based tools like GitHub or after pushing to the origin server In the meantime, Jessica has created a new topic branch called issue54, and made three commits to that branch. She hasn’t fetched John’s changes yet, so her commit history0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 | 23 +++++++++++++++++++++++ lib/simplegit.rb | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+) As you can see, the --stat option prints below each commit entry a list of modified remote and merges locally. 6. The maintainer pushes merged changes to the main repository. Figure 54. Integration-manager workflow This is a very common workflow with hub-based tools like GitHub or after pushing to the origin server In the meantime, Jessica has created a new topic branch called issue54, and made three commits to that branch. She hasn’t fetched John’s changes yet, so her commit history0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66| 23 +++++++++++++++++++++++ lib/simplegit.rb | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+) 正如你所看到的,--stat 选项在每次提交的下面列出所有被修改过的文件、有多少文件被修改了以及被修改过 的文件的哪些行被移除或是添加了。 在每次提交的最后还有一个总结。 branch] ticgit -> pb/ticgit 现在 Paul 的 master 分支可以在本地通过 pb/master 访问到——你可以将它合并到自己的某个分支中, 或者如 54 果你想要查看它的话,可以检出一个指向该点的本地分支。 (我们将会在 Git 分支 中详细介绍什么是分支以及如何使用分支。) 从远程仓库中抓取与拉取 就如刚才所见,从远程仓库中获得数据,可以执行: 集中式系统中通常使用的是单点协作模型——集中式工作流。 一个中心集线器,或者说 仓库,可以接受代码, 所有人将自己的工作与之同步。 若干个开发者则作为节点,即中心仓库的消费者与中心仓库同步。 图表 54. 集中式工作流。 这意味着如果两个开发者从中心仓库克隆代码下来,同时作了一些修改,那么只有第一个开发者可以顺利地把数 据推送回共享服务器。 第二个开发者在推送修改之前,必须先将第一个人的工作合并进来,这样才不会覆盖第0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66| 23 +++++++++++++++++++++++ lib/simplegit.rb | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+) 正如你所看到的,--stat 选项在每次提交的下面列出所有被修改过的文件、 有多少文件被修改了以及被修改过的文件的哪些行被移除或是添加了。 在每 次提交的最后还有一个总结。 集中式系统中通常使用的是单点协作模型——集中式工作流。 一个中心集线 器,或者说 仓库,可以接受代码,所有人将自己的工作与之同步。 若干个开 发者则作为节点,即中心仓库的消费者与中心仓库同步。 图表 54. 集中式工作流。 这意味着如果两个开发者从中心仓库克隆代码下来,同时作了一些修改,那么 只有第一个开发者可以顺利地把数据推送回共享服务器。 第二个开发者在推 送修改之前,必须先将第一个人的工作合并进来,这样才不会覆盖第一个人的 master -> master 最终,John 的提交历史看起来像这样: 图表 60. 推送到 origin 服务器后 John 的历史 在此期间,Jessica 新建了一个名为 issue54 的主题分支,然后在该分支上提 交了三次。 她还没有抓取 John 的改动,所以她的提交历史看起来像这样: 图表 61. Jessica 的主题分支 忽然,Jessica 发现 John 向服务器推送了一些新的工作,她想要看一下,0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













