Pro Git 2nd Edition 2.1.413Bash Git in Zsh Git in PowerShell Installation Summary Appendix B: Embedding Git in your Applications Command-line Git Libgit2 Advanced Functionality Other Bindings Further Reading JGit Getting personal access token. You can generate this from the “Applications” tab of your settings page. Figure 133. Generate your access token from the “Applications” tab of your settings page It will ask you which 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. Its documentation and source code can0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413. . . . . . . . . . . . . . . . . . . . . . . . . . . 465 Appendix B: Embedding Git in your Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466 personal access token. You can generate this from the “Applications” tab of your settings page. Figure 133. Generate your access token from the “Applications” tab of your settings page It will ask you which 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. Its documentation and source code can0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Bash Git in Zsh Git in PowerShell Installation Summary Appendix B: Embedding Git in your Applications Command-line Git Libgit2 Advanced Functionality Other Bindings Further Reading JGit Getting personal access token. You can generate this from the “Applications” tab of your settings page. Figure 133. Generate your access token from the “Applications” tab of your settings page It will ask you which 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. Its documentation and source code can0 码力 | 691 页 | 13.35 MB | 1 年前3
Gitea v1.21.1 中文文档ECDSA私钥。如果不存在密钥,则将为您创建一个4096位密钥。 MAX_TOKEN_LENGTH :32767:从OAuth2提供者接受的令牌/cookie的最大长度。 DEFAULT_APPLICATIONS :git-credential-oauth,git-credential-manager:在启动时预注册用于某些 服务的OAuth应用程序。有关可用选项列表,请参阅OAuth2文档。 enabled. If SSH is not an option for Git operations, an access token can be generated within the “Applications” tab of the user settings page. This access token can be used as if it were a password in order 调用解析查询参数以及头部信息来获取 token 的代码可以在 modules/auth/auth.go 中找到。 您可以通过您的 gitea web 界面来创建 apiKey token: Settings | Applications | Generate New Token . 由于一些历史原因,Gitea 需要在 header 的 apiKey token 里引入前缀 token ,类似于如下形式: 1. Authorization:0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66互,你需要授权。 这里提供了几种授权方式。 你可以使用仅需用户名与密码的基本授权,但是通常更好的主意是使用一个个人访 问令牌。 可以从设置页的 “Applications” 标签生成访问令牌。 图表 134. 从设置页的 “Applications” 标签生成访问令牌。 它会询问这个令牌的作用域与一个描述。 确保使用一个好的描述信息,这样当脚本或应用不再使用时你会很放 心地移除。 GitHub 创建一个名为 extMerge 的脚本包装 merge 命令,让它把参数转发给 p4merge 二进制文件: $ cat /usr/local/bin/extMerge #!/bin/sh /Applications/p4merge.app/Contents/MacOS/p4merge $* 包装 diff 命令的脚本首先确保传递了七个参数过来,随后把其中两个转发给包装了 merge 的脚本。 默认情况 extDiff 和 extMerge 的工具改成 KDiff3,你要做的仅仅是编辑 extMerge 脚本文件: $ cat /usr/local/bin/extMerge #!/bin/sh /Applications/kdiff3.app/Contents/MacOS/kdiff3 $* 341 现在,Git 将使用 KDiff3 作为查看比较和解决合并冲突的工具。 Git 预设了许多其他的合并0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66论,或者想要查看私有内容或与其交互,你需要授权。 这里提供了几种授权方式。 你可以使用仅需用户名与密码的基本授权,但是 通常更好的主意是使用一个个人访问令牌。 可以从设置页的 “Applications” 标签生成访问令牌。 图表 134. 从设置页的 “Applications” 标签生成访问令牌。 它会询问这个令牌的作用域与一个描述。 确保使用一个好的描述信息,这样 当脚本或应用不再使用时你会很放心地移除。 GitHub 创建一个名为 extMerge 的脚本 包装 merge 命令,让它把参数转发给 p4merge 二进制文件: $ cat /usr/local/bin/extMerge #!/bin/sh /Applications/p4merge.app/Contents/MacOS/p4merge $* 包装 diff 命令的脚本首先确保传递了七个参数过来,随后把其中两个转发给 包装了 merge 的脚本。 默认情况下, extDiff 和 extMerge 的工具改成 KDiff3,你要做的仅仅是编辑 extMerge 脚本文件: $ cat /usr/local/bin/extMerge #!/bin/sh /Applications/kdiff3.app/Contents/MacOS/kdiff3 $* 现在,Git 将使用 KDiff3 作为查看比较和解决合并冲突的工具。 Git 预设了许多其他的合并和解决冲突的工具,无需特别的设置你就能用上它0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













