diff --git a/help/_posts/1970-01-01-binutils-gdb.git.md b/help/_posts/1970-01-01-binutils-gdb.git.md index 07093b3..96c8bc1 100644 --- a/help/_posts/1970-01-01-binutils-gdb.git.md +++ b/help/_posts/1970-01-01-binutils-gdb.git.md @@ -4,24 +4,84 @@ layout: help mirrorid: binutils-gdb.git --- -## GNU Binutils 和 GDB 等项目 Git 镜像使用帮助 +# GDB Git 镜像使用帮助 + +
+ + + + + 如需克隆 Binutils 等项目的代码,使用 -``` -git clone https://{{ site.hostname }}/git/binutils-gdb.git -``` -若要将 tuna mirror 加入已有代码库,可在已有仓库中运行 -``` -git remote add tuna https://{{ site.hostname }}/git/binutils-gdb.git -``` +{% raw %} + +{% endraw %} + + + +
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/binutils-gdb.git
-```
-将默认上游设置为 TUNA 镜像
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-crates.io-index.git.md b/help/_posts/1970-01-01-crates.io-index.git.md
index 9334db0..eef0583 100644
--- a/help/_posts/1970-01-01-crates.io-index.git.md
+++ b/help/_posts/1970-01-01-crates.io-index.git.md
@@ -4,18 +4,52 @@ layout: help
mirrorid: crates.io-index.git
---
-## Rust crates.io 索引镜像使用帮助
+# Rust crates.io 索引镜像使用帮助
+
+
+
+
+
+
+
编辑 `~/.cargo/config` 文件,添加以下内容:
-```
+
+
+{% raw %}
+
+{% endraw %}
-该镜像可加快 cargo 读取软件包索引的速度。
+
+
+
+
+
+
+
+
+在可能的情况下推荐使用 [Rust crates.io 稀疏索引镜像](/help/crates.io-index)
-在可能的情况下推荐使用 [Rust crates.io 稀疏索引镜像](/help/crates.io-index/)
diff --git a/help/_posts/1970-01-01-flutter-sdk.git.md b/help/_posts/1970-01-01-flutter-sdk.git.md
index 0dd9b61..9f405f9 100644
--- a/help/_posts/1970-01-01-flutter-sdk.git.md
+++ b/help/_posts/1970-01-01-flutter-sdk.git.md
@@ -4,21 +4,71 @@ layout: help
mirrorid: flutter-sdk.git
---
-## Flutter SDK 源码镜像使用帮助
+# Flutter SDK 镜像使用帮助
+
+
+
+
+
+
+
Flutter SDK 默认从 Github 获取更新,如您访问 Github 速度慢,可以在 Flutter 目录下运行命令:
-```
-git remote set-url origin https://{{ site.hostname }}/git/flutter-sdk.git
-```
-将上游设置为 TUNA 镜像。
-或者通过下面的命令,直接从 Master 构建渠道检出 Flutter 的 SDK:
+{% raw %}
+
+{% endraw %}
-```
-git clone -b master https://{{ site.hostname }}/git/flutter-sdk.git
+
+
+
+
+
+
+
+
+将上游设置为镜像站。
+
+或者通过下面的命令,直接从 Master 构建渠道检出 Flutter 的 SDK:
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+您也可以替换上述代码中 `git clone -b` 之后的 `master` 为 `beta` 获取 Beta 渠道的构建、替换为 `dev` 获取 Dev 渠道的构建。
+
+Flutter 镜像使用方法参见 [Flutter 镜像安装帮助](/help/flutter)。
-Flutter 镜像使用方法参见 [Flutter 镜像安装帮助](../flutter)。
\ No newline at end of file
diff --git a/help/_posts/1970-01-01-gcc.git.md b/help/_posts/1970-01-01-gcc.git.md
index 0bdd3e5..8e2ccc0 100644
--- a/help/_posts/1970-01-01-gcc.git.md
+++ b/help/_posts/1970-01-01-gcc.git.md
@@ -4,24 +4,84 @@ layout: help
mirrorid: gcc.git
---
-## GCC Git 镜像使用帮助
+# GCC Git 镜像使用帮助
+
+
+
+
+
+
+
如需克隆 GCC 代码,使用
-```
-git clone https://{{ site.hostname }}/git/gcc.git
-```
-若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
-```
-git remote add tuna https://{{ site.hostname }}/git/gcc.git
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/gcc.git
-```
-将默认上游设置为 TUNA 镜像
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-glibc.git.md b/help/_posts/1970-01-01-glibc.git.md
index 493f93c..05494a5 100644
--- a/help/_posts/1970-01-01-glibc.git.md
+++ b/help/_posts/1970-01-01-glibc.git.md
@@ -4,24 +4,84 @@ layout: help
mirrorid: glibc.git
---
-## GNU C Library Git 镜像使用帮助
+# GNU C Library (glibc) Git 镜像使用帮助
+
+
+
+
+
+
+
如需克隆 GNU C Library 代码,使用
-```
-git clone https://{{ site.hostname }}/git/glibc.git
-```
-若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
-```
-git remote add tuna https://{{ site.hostname }}/git/glibc.git
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/glibc.git
-```
-将默认上游设置为 TUNA 镜像
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-linux-firmware.git.md b/help/_posts/1970-01-01-linux-firmware.git.md
index 7677df2..ad2d6b2 100644
--- a/help/_posts/1970-01-01-linux-firmware.git.md
+++ b/help/_posts/1970-01-01-linux-firmware.git.md
@@ -4,26 +4,84 @@ layout: help
mirrorid: linux-firmware.git
---
-## Linux 固件仓库 Git 镜像使用帮助
+# Linux Firmware Git 镜像使用帮助
-如需克隆 Linux 固件仓库,使用
+
-```
-git clone https://{{ site.hostname }}/git/linux-firmware.git
-```
-若要将 tuna mirror 加入已有仓库,可在已有仓库中运行
+
+
+
+
+如需克隆 Linux Firmware 代码,使用
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
-```
-git remote add tuna https://{{ site.hostname }}/git/linux-firmware.git
-```
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/linux-firmware.git
-```
-
-将默认上游设置为 TUNA 镜像。
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-linux-next.git.md b/help/_posts/1970-01-01-linux-next.git.md
index 6dc8ed5..dbe4691 100644
--- a/help/_posts/1970-01-01-linux-next.git.md
+++ b/help/_posts/1970-01-01-linux-next.git.md
@@ -2,5 +2,86 @@
category: help
layout: help
mirrorid: linux-next.git
-redirect_help_id: linux.git
---
+
+# Linux Next Git 镜像使用帮助
+
+
+
+
+
+
+
+
+如需克隆 Linux Next 代码,使用
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+或运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-linux-stable.git.md b/help/_posts/1970-01-01-linux-stable.git.md
index 88bfc57..329600d 100644
--- a/help/_posts/1970-01-01-linux-stable.git.md
+++ b/help/_posts/1970-01-01-linux-stable.git.md
@@ -2,5 +2,86 @@
category: help
layout: help
mirrorid: linux-stable.git
-redirect_help_id: linux.git
---
+
+# Linux Stable Git 镜像使用帮助
+
+
+
+
+
+
+
+
+如需克隆 Linux Stable 代码,使用
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+或运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
diff --git a/help/_posts/1970-01-01-linux.git.md b/help/_posts/1970-01-01-linux.git.md
index e9d6f65..1f75860 100644
--- a/help/_posts/1970-01-01-linux.git.md
+++ b/help/_posts/1970-01-01-linux.git.md
@@ -4,29 +4,86 @@ layout: help
mirrorid: linux.git
---
-## Linux Kernel Git 镜像使用帮助
+# Linux Git 镜像使用帮助
-本项目包含三个镜像:`linux.git`, `linux-stable.git`, `linux-next.git`,分别是主分支、稳定版分支和开发分支。在使用时,请自行更改路径中相应的仓库名称。
+
-如需克隆主线 linux 代码,使用
-```
-git clone https://{{ site.hostname }}/git/linux.git
-```
+
-若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
-```
-git remote add tuna https://{{ site.hostname }}/git/linux.git
-```
+
+如需克隆 Linux 代码,使用
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/linux.git
-```
-将默认上游设置为 TUNA 镜像
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
### 增量下载
@@ -34,8 +91,21 @@ git remote set-url origin https://{{ site.hostname }}/git/linux.git
以树莓派为例,具体操作为
-```
-git clone https://{{ site.hostname }}/git/linux.git
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/1970-01-01-qemu.git.md b/help/_posts/1970-01-01-qemu.git.md
index 8015eba..e7c99c0 100644
--- a/help/_posts/1970-01-01-qemu.git.md
+++ b/help/_posts/1970-01-01-qemu.git.md
@@ -4,30 +4,94 @@ layout: help
mirrorid: qemu.git
---
-## QEMU Git 镜像使用帮助
+# QEMU Git 镜像使用帮助
-如需克隆 QEMU 代码及其子模块,使用以下脚本(实验性功能)
+
+
+
+
+
+
+
+## 实验性脚本(仅 TUNA 提供)
+
+如需克隆 QEMU 代码及其子模块,使用以下脚本
```
-curl https://{{ site.hostname }}/git/qemu/qemu.sh | bash
+curl https://mirrors.tuna.tsinghua.edu.cn/git/qemu/qemu.sh | bash
```
+## 手动克隆
+
如仅需克隆 QEMU 代码,使用
-```
-git clone https://{{ site.hostname }}/git/qemu.git
-```
-若要将镜像站加入已有代码库,可在已有仓库中运行
-```
-git remote add tuna https://{{ site.hostname }}/git/qemu.git
-```
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
或运行
-```
-git remote set-url origin https://{{ site.hostname }}/git/qemu.git
-```
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
将默认上游设置为镜像站
+
diff --git a/help/_posts/2020-09-10-llvm-project.git.md b/help/_posts/2020-09-10-llvm-project.git.md
index 07428e8..6046d2a 100644
--- a/help/_posts/2020-09-10-llvm-project.git.md
+++ b/help/_posts/2020-09-10-llvm-project.git.md
@@ -4,7 +4,30 @@ layout: help
mirrorid: llvm-project.git
---
-## LLVM Git 源码仓库镜像使用帮助
+# LLVM Project Git 镜像使用帮助
+
+
+
+
+
+
+
本镜像镜像了如下仓库:
@@ -12,21 +35,63 @@ mirrorid: llvm-project.git
https://github.com/llvm/llvm-project.git
```
-可以直接使用 `git clone https://{{ site.hostname }}/git/llvm-project.git` 来克隆。由于仓库体积均较大,执行`git clone`可能需要较长时间,并且没有进度提示,请耐心等候。
-
-若要将 TUNA mirror 加入已有代码库,可在已有仓库中运行:
-
-```
-git remote add tuna https://{{ site.hostname }}/git/llvm-project.git
-```
-
-或运行:
-
-```
-git remote set-url origin https://{{ site.hostname }}/git/llvm-project.git
-```
-
-将默认上游设置为 TUNA 镜像。
+如需克隆代码,使用
-注:如需要各个子项目的发布版本代码,请至 [GitHub Release 镜像](https://{{ site.hostname }}/github-release/llvm/llvm-project/) 下载。
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+由于仓库体积均较大,执行`git clone`可能需要较长时间,并且没有进度提示,请耐心等候。
+
+若要将 mirror 加入已有代码库,可在已有仓库中运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+或运行
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
+将默认上游设置为镜像站
+
+注:如需要各个子项目的发布版本代码,请至 [GitHub Release 镜像](/help/github-release) 中 llvm-project 一节。
+
diff --git a/help/_posts/2022-01-08-ohmyzsh.git.md b/help/_posts/2022-01-08-ohmyzsh.git.md
index 06c83c9..d5666e3 100644
--- a/help/_posts/2022-01-08-ohmyzsh.git.md
+++ b/help/_posts/2022-01-08-ohmyzsh.git.md
@@ -4,21 +4,69 @@ layout: help
mirrorid: ohmyzsh.git
---
-## ohmyzsh Git 镜像使用帮助
+# ohmyzsh Git 镜像使用帮助
+
+
+
+
+
+
+
### 安装
在本地克隆后获取安装脚本。
-```
-git clone https://{{ site.hostname }}/git/ohmyzsh.git
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### 切换已有 ohmyzsh 至镜像源
-```
-git -C $ZSH remote set-url origin https://{{ site.hostname }}/git/ohmyzsh.git
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
diff --git a/help/_posts/2022-09-22-pkgsrc.git.md b/help/_posts/2022-09-22-pkgsrc.git.md
index 272e270..94186fc 100644
--- a/help/_posts/2022-09-22-pkgsrc.git.md
+++ b/help/_posts/2022-09-22-pkgsrc.git.md
@@ -3,27 +3,82 @@ category: help
layout: help
mirrorid: pkgsrc.git
---
-## pkgsrc.git 镜像使用帮助
-**注:该镜像是 pkgsrc 源码安装的镜像。本镜像站同时提供 pkgsrc 其他功能的镜像(如二进制包,distfile 等,不包含 joyent 内容),请参考 [pkgsrc 镜像使用帮助](https://{{ site.hostname }}/help/pkgsrc/)。**
+# pkgsrc Git 镜像使用帮助
+
+
+
+
+
+
+
+
+**注:该镜像是 pkgsrc 源码安装的镜像。本镜像站同时提供 pkgsrc 其他功能的镜像(如二进制包,distfile 等,不包含 joyent 内容),请参考 [pkgsrc 镜像使用帮助](/help/pkgsrc)。**
### 源码安装
+
对应[官方文档 getting-via-cvs](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#getting-via-cvs),本镜像站中 pkgsrc.git 镜像与官方文档中源的 CVS 架构不同,与[官方 git 镜像](https://github.com/NetBSD/pkgsrc)架构类似,故使用命令有所调整。
拉取特定稳定版镜像分支
-```bash
-git clone -b pkgsrc-2021Q4 https://{{ site.hostname }}/git/pkgsrc.git
-```
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
+
拉取当前镜像分支
-```bash
-git clone https://{{ site.hostname }}/git/pkgsrc.git
-```
+
+
+
+{% raw %}
+
+{% endraw %}
+
+
+
+
+
+
+
+
### 源码更新
+
对应[官方文档 uptodate-cvs](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#uptodate-cvs),切换到 pkgsrc 目录,执行
+
```bash
git pull
```
+
#### 源码切换分支
对应[官方文档 uptodate-cvs-switch](https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#uptodate-cvs-switch),切换到 pkgsrc 目录
@@ -35,3 +90,4 @@ git checkout pkgsrc-2021Q4
```bash
git checkout trunk
```
+
diff --git a/help/_posts/2023-03-19-nixpkgs.git.md b/help/_posts/2023-03-19-nixpkgs.git.md
index 90aa549..2011489 100644
--- a/help/_posts/2023-03-19-nixpkgs.git.md
+++ b/help/_posts/2023-03-19-nixpkgs.git.md
@@ -38,7 +38,6 @@ nixpkgs 镜像,同步源为 [https://github.com/NixOS/nixpkgs](https://github.
{% raw %}
{% endraw %}