Pro Git 中文版 第2版 2.1.66--global 选项的命令来配置。 很多 GUI 工具都会在第一次运行时帮助你配置这些信息。 文本编辑器 既然用户信息已经设置完毕,你可以配置默认文本编辑器了,当 Git 需要你输入信息时会调用它。 如果未配 置,Git 会使用操作系统默认的文本编辑器。 如果你想使用不同的文本编辑器,例如 Emacs,可以这样做: $ git config --global core.editor emacs Git Diff 的插件版本 在本书中,我们使用 git diff 来分析文件差异。 但是你也可以使用图形化的工具或外部 diff 工具来比较差异。 可以使用 git difftool 命令来调用 emerge 或 vimdiff 等软件(包 括商业软件)输出 diff 的分析结果。 使用 git difftool --tool-help 命令来看你的系统 支持哪些 Git Diff 插件。 -S(俗称“pickaxe”选项,取“用鹤嘴锄在土里捡石头”之意), 它接受一个字 符串参数,并且只会显示那些添加或删除了该字符串的提交。 假设你想找出添加或删除了对某一个特定函数的 引用的提交,可以调用: $ git log -S function_name 最后一个很实用的 git log 选项是路径(path), 如果只关心某些文件或者目录的历史提交,可以在 git log 选项的最后指定它们的路径。0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66global 选项的命令来配置。 很多 GUI 工具都会在第一次运行时帮助你配置这些信息。 文本编辑器 既然用户信息已经设置完毕,你可以配置默认文本编辑器了,当 Git 需要你输 入信息时会调用它。 如果未配置,Git 会使用操作系统默认的文本编辑器。 如果你想使用不同的文本编辑器,例如 Emacs,可以这样做: $ git config --global core.editor emacs title that it's 在本书中,我们使用 git diff 来分析文件差异。 但是你也可以使用图形化的工具或外部 diff 工具来比较差异。 可以使用 git difftool 命令来调用 emerge 或 vimdiff 等软件(包 括商业软件)输出 diff 的分析结果。 使用 git difftool --tool-help 命令来看你的系统支 持哪些 Git Diff 插件。 -S(俗称“pickaxe”选项,取“用鹤嘴锄在土里捡 石头”之意), 它接受一个字符串参数,并且只会显示那些添加或删除了该字 符串的提交。 假设你想找出添加或删除了对某一个特定函数的引用的提交, 可以调用: $ git log -S function_name 最后一个很实用的 git log 选项是路径(path), 如果只关心某些文件或者 目录的历史提交,可以在 git log 选项的最后指定它们的路径。0 码力 | 670 页 | 13.59 MB | 1 年前3
Gitea v1.21.1 中文文档Intel/AMD 平台, 386 适用于 32-bit 的 Intel/AMD 平台。(提示: gogit-windows 版本内建了 gogit 可能缓解在旧的 Windows 平台上 Go 程 序调用 git 子程序时面临的 性能问题) 对于 macOS, darwin-arm64 适用于 Apple Silicon 架构, darwin-amd64 适用于 Intel 架构. 对于 dump --verbose 用于在配置文件中生成随机值和令牌。对于自动部署时生成值非常有用。 命令: secret : 选项: INTERNAL_TOKEN : 用于内部 API 调用身份验证的令牌。 JWT_SECRET : 用于 LFS 和 OAUTH2 JWT 身份验证的密钥(LFS_JWT_SECRET 是此选 项的别名,用于向后兼容)。 SECRET_KEY : 您可以使用以下方式让 Gitea 重新创建多个表: 1. gitea doctor recreate-table table1 table2 ... 如果您希望 Gitea 重新创建所有表,请直接调用: 1. gitea doctor recreate-table 强烈建议在运行这些命令之前备份您的数据库。 将现有的 MySQL 数据库从 utf8 转换为 utf8mb4,或者把 MSSQL0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 2nd Edition 2.1.413longer the recommended way to rewrite history. Instead, consider using git-filter-repo, which is a Python script that does a better job for most applications where you would normally turn to filter-branch thrown in, but any properly named executable scripts will work fine – you can write them in Ruby or Python or whatever language you are familiar with. If you want to use the bundled hook scripts, you’ll the mercurial library for Python. If you have Python installed, this is as simple as: $ pip install mercurial If you don’t have Python installed, visit https://www.python.org/ and get it first. 3770 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413longer the recommended way to rewrite history. Instead, consider using git-filter-repo, which is a Python script that does a better job for most applications where you would normally turn to filter- branch thrown in, but any properly named executable scripts will work fine – you can write them in Ruby or Python or whatever language you are familiar with. If you want to use the bundled hook scripts, you’ll the mercurial library for Python. If you have Python installed, this is as simple as: $ pip install mercurial If you don’t have Python installed, visit https://www.python.org/ and get it first. The0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 longer the recommended way to rewrite history. Instead, consider using git-filter-repo, which is a Python script that does a better job for most applications where you would normally turn to filter-branch thrown in, but any properly named executable scripts will work fine – you can write them in Ruby or Python or whatever language you are familiar with. If you want to use the bundled hook scripts, you’ll the mercurial library for Python. If you have Python installed, this is as simple as: $ pip install mercurial If you don’t have Python installed, visit https://www.python.org/ and get it first. The0 码力 | 691 页 | 13.35 MB | 1 年前3
共 6 条
- 1













