Gitea v1.21.1 中文文档chmod 640 /etc/gitea/app.ini 如果您不希望通过 Web 安装程序创建配置文件,可以将配置文件设置为仅供 Gitea 用户只读(owner/group root:git , mode 0640 )并手工创建配置文件: 设置 INSTALL_LOCK=true 关闭安装界面 准备环境 创建工作路径 使用二进制文件安装 - 20 - 本文档使用 书栈网 · BookStack 您可以通过环境变量配置 Gitea 的一些设置: (默认值以粗体显示) APP_NAME :“Gitea: Git with a cup of tea”:应用程序名称,在页面标题中使用。 RUN_MODE :prod:应用程序运行模式,会影响性能和调试。”dev”,”prod”或”test”。 DOMAIN :localhost:此服务器的域名,用于 Gitea UI 中显示的 http 克隆 运行Gitea的用户, 应当是一个专 用的系统账户(非用户使用,推荐创建一个专用的 git 用户). 如果在你自己的个人电脑使用改成你自己的用户 名。 该配置如果设置不正确,Gitea可能崩溃。 RUN_MODE : prod: 应用的运行模式,对运行性能和问题排除有影响: dev 或者 prod ,默认为 prod 。 dev 模式有助于开发和问题排查, 除设置为 dev 外,均被视为0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 2nd Edition 2.1.413your staged changes to your last commit: $ git diff --staged diff --git a/README b/README new file mode 100644 index 0000000..03902a1 --- /dev/null +++ b/README @@ -0,0 +1 @@ +My Project It’s important speed" [master 463dc4f] Story 182: fix benchmarks for speed 2 files changed, 2 insertions(+) create mode 100644 README Now you’ve created your first commit! You can see that the commit has given you some you’re applying a number of patches from an mbox, you can also run the am command in interactive mode, which stops at each patch it finds and asks if you want to apply it: $ git am -3 -i mbox Commit0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413your staged changes to your last commit: $ git diff --staged diff --git a/README b/README new file mode 100644 index 0000000..03902a1 --- /dev/null +++ b/README @@ -0,0 +1 @@ +My Project It’s important speed" [master 463dc4f] Story 182: fix benchmarks for speed 2 files changed, 2 insertions(+) create mode 100644 README Now you’ve created your first commit! You can see that the commit has given you some you’re applying a number of patches from an mbox, you can also run the am command in interactive mode, which stops at each patch it finds and asks if you want to apply it: $ git am -3 -i mbox Commit0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 your staged changes to your last commit: $ git diff --staged diff --git a/README b/README new file mode 100644 index 0000000..03902a1 --- /dev/null +++ b/README @@ -0,0 +1 @@ +My Project It’s important speed" [master 463dc4f] Story 182: fix benchmarks for speed 2 files changed, 2 insertions(+) create mode 100644 README Now you’ve created your first commit! You can see that the commit has given you some you’re applying a number of patches from an mbox, you can also run the am command in interactive mode, which stops at each patch it finds and asks if you want to apply it: $ git am -3 -i mbox Commit0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66--staged 命令。 这条命令将比对已暂存 文件与最后一次提交的文件差异: 37 $ git diff --staged diff --git a/README b/README new file mode 100644 index 0000000..03902a1 --- /dev/null +++ b/README @@ -0,0 +1 @@ +My Project 请注意,git diff speed" [master 463dc4f] Story 182: Fix benchmarks for speed 2 files changed, 2 insertions(+) create mode 100644 README 好,现在你已经创建了第一个提交! 可以看到,提交后它会告诉你,当前是在哪个分支(master)提交的,本 次提交的完整 SHA-1 校验和是什么(463dc4f), signed commit 4 files changed, 4 insertions(+), 24 deletions(-) rewrite Rakefile (100%) create mode 100644 lib/git.rb git log 也有一个 --show-signature 选项来查看及验证这些签名。 $ git log --show-signature -1 commit0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66--staged 命令。 这条命令将比对已暂存文件与最后一次提交的文件差异: $ git diff --staged diff --git a/README b/README new file mode 100644 index 0000000..03902a1 --- /dev/null +++ b/README @@ -0,0 +1 @@ +My Project 请注意,git diff speed" [master 463dc4f] Story 182: Fix benchmarks for speed 2 files changed, 2 insertions(+) create mode 100644 README 好,现在你已经创建了第一个提交! 可以看到,提交后它会告诉你,当前是 在哪个分支(master)提交的,本次提交的完整 SHA-1 校验和是什么 (463dc4 signed commit 4 files changed, 4 insertions(+), 24 deletions(-) rewrite Rakefile (100%) create mode 100644 lib/git.rb git log 也有一个 --show-signature 选项来查看及验证这些签名。 $ git log --show-signature -1 commit0 码力 | 670 页 | 13.59 MB | 1 年前3
git 操作手册commit -m "msgxxx" #将暂存区提交到仓库区(commit为提交操作),- m后指定本次提交的说明信息 1 file changed, 1 inser�on(+) create mode 100644 main.py # git log #查看提交记录;显示完整的hash值 commit 7b8ff6902bf14780a40 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1













