Pro Git 2nd Edition 2.1.413made by the 'recursive' strategy. hello.rb | 2 +- test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test.sh In that case, instead of getting conflict markers in the good commit second: $ git bisect start HEAD v1.0 $ git bisect run test-error.sh Doing so automatically runs test-error.sh on each checked-out commit until Git finds the first broken commit. You can also -> origin/master $ git merge origin/master Updating c3f01dc..d0354fc Fast-forward scripts/connect.sh | 1 + src/db.c | 1 + 2 files changed, 2 insertions(+) Now if you go back into the main0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413made by the 'recursive' strategy. hello.rb | 2 +- test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test.sh In that case, instead of getting conflict markers in the good commit second: $ git bisect start HEAD v1.0 $ git bisect run test-error.sh Doing so automatically runs test-error.sh on each checked-out commit until Git finds the first broken commit. You can also -> origin/master $ git merge origin/master Updating c3f01dc..d0354fc Fast-forward scripts/connect.sh | 1 + src/db.c | 1 + 2 files changed, 2 insertions(+) Now if you go back into the main0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 made by the 'recursive' strategy. hello.rb | 2 +- test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test.sh In that case, instead of getting conflict markers in the good commit second: $ git bisect start HEAD v1.0 $ git bisect run test-error.sh Doing so automatically runs test-error.sh on each checked-out commit until Git finds the first broken commit. You can also -> origin/master $ git merge origin/master Updating c3f01dc..d0354fc Fast-forward scripts/connect.sh | 1 + src/db.c | 1 + 2 files changed, 2 insertions(+) Now if you go back into the main0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66made by the 'recursive' strategy. hello.rb | 2 +- test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test.sh 在上例中,它并不会为 “hello mundo” 与 “hola world” 标记合并冲突,它只会简单地选取 这两个提交,第一个参数是项目不正常的提交,第二个参数是项目正常的提交: $ git bisect start HEAD v1.0 $ git bisect run test-error.sh Git 会自动在每个被检出的提交里执行 test-error.sh,直到找到项目第一个不正常的提交。 你也可以执行 make 或者 make tests 或者其他东西来进行自动化测试。 子模块 有种情况我们经常会遇到:某个工作中的项目需要包含并使用另一个项目。 -> origin/master $ git merge origin/master Updating c3f01dc..d0354fc Fast-forward scripts/connect.sh | 1 + src/db.c | 1 + 2 files changed, 2 insertions(+) 如果你现在返回到主项目并运行 git diff --submo0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66made by the 'recursive' strategy. hello.rb | 2 +- test.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test.sh 在上例中,它并不会为 “hello mundo” 与 “hola world” 标记合并冲突,它只 会简单地选取 定这两个提交,第一个参数是项目不正常的提交,第二个参数是项目正常的提 交: $ git bisect start HEAD v1.0 $ git bisect run test-error.sh Git 会自动在每个被检出的提交里执行 test-error.sh,直到找到项目第一个 不正常的提交。 你也可以执行 make 或者 make tests 或者其他东西来进行自 动化测试。 子模块 有种情况我们经常会遇到: -> origin/master $ git merge origin/master Updating c3f01dc..d0354fc Fast-forward scripts/connect.sh | 1 + src/db.c | 1 + 2 files changed, 2 insertions(+) 如果你现在返回到主项目并运行 git diff --submodule,就会看到子模块被0 码力 | 670 页 | 13.59 MB | 1 年前3
git 操作手册h�ps://packages.gitlab.com/install/repositories/gitlab/gitlab- ce/script.rpm.sh -o script.rpm.sh # bash script.rpm.sh #安装官方yum源 # cat /etc/yum.repos.d/gitlab_gitlab-ce0 码力 | 35 页 | 1.69 MB | 1 年前3
Gitea v1.21.1 中文文档shell,以将命令转发到容器内的 sh 可执行文件,使用 docker exec 。 首先,在主机上创建文件 /usr/local/bin/gitea-shell ,并填入以下内容: 1. #!/bin/sh 2. /usr/bin/docker exec -i --env SSH_ORIGINAL_COMMAND="$SSH_ORIGINAL_COMMAND" gitea sh "$@" 注意上述 将旧的 Gitea 二进制文件覆盖成新的。 启动 Gitea 实例。 在 Linux 系统上自动执行以上步骤的脚本可在 Gitea 的 source tree 中找到 contrib/upgrade.sh 来获 取. Gitea 的模板结构与变量可能会随着各个版本的发布发生变化,如果你使用了自定义模板, 你得注意你的模板与你 使用的 Gitea 版本的兼容性。 如果自定义模板与 Gitea 版本不兼容,你可能会遇到: 存放git工程的根目录,建议填绝对路径。 相对 路径将被解析为 AppWorkPath /%(ROOT)s. SCRIPT_TYPE : bash: 服务器支持的Shell类型,通常是 bash , 但有些服务器也有可能是 sh 。 DETECTED_CHARSETS_ORDER : UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-12520 码力 | 303 页 | 3.88 MB | 1 年前3
共 7 条
- 1













