Merge pull request #30 from LeBaronDeCharlus/fix/bad-git-command

Fixing git command that leads to an error and adding sudo where needed.
This commit is contained in:
Edson Brandi 2026-07-14 03:02:51 +01:00 committed by GitHub
commit 188c9d33a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 11 additions and 11 deletions

View file

@ -254,7 +254,7 @@ As we move forward, we'll look at examples from the actual FreeBSD kernel source
To store a complete local copy of the FreeBSD source code, you will need approximately 3.6 GB of free disk space. You can install it using Git by running the following command: To store a complete local copy of the FreeBSD source code, you will need approximately 3.6 GB of free disk space. You can install it using Git by running the following command:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
This will give you access to all source code, which we'll reference frequently throughout this book. This will give you access to all source code, which we'll reference frequently throughout this book.

View file

@ -13124,7 +13124,7 @@ Before starting, ensure you have:
```bash ```bash
# If /usr/src is missing, install it: # If /usr/src is missing, install it:
% sudo pkg install git % sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
3. **Build tools installed**: 3. **Build tools installed**:

View file

@ -790,7 +790,7 @@ A partir de este momento, cada vez que este libro mencione un archivo como `/usr
Clónalo con Git: Clónalo con Git:
```console ```console
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
Esto tardará varios minutos y descargará varios gigabytes. Cuando termine, tendrás disponible el árbol de código fuente completo del kernel. Esto tardará varios minutos y descargará varios gigabytes. Cuando termine, tendrás disponible el árbol de código fuente completo del kernel.

View file

@ -254,7 +254,7 @@ A medida que avancemos, veremos ejemplos del código fuente real del kernel de F
Para almacenar una copia local completa del código fuente de FreeBSD, necesitarás aproximadamente 3,6 GB de espacio libre en disco. Puedes instalarlo con Git ejecutando el siguiente comando: Para almacenar una copia local completa del código fuente de FreeBSD, necesitarás aproximadamente 3,6 GB de espacio libre en disco. Puedes instalarlo con Git ejecutando el siguiente comando:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
Esto te dará acceso a todo el código fuente, al que haremos referencia con frecuencia a lo largo de este libro. Esto te dará acceso a todo el código fuente, al que haremos referencia con frecuencia a lo largo de este libro.

View file

@ -13129,7 +13129,7 @@ Antes de comenzar, asegúrate de tener:
```bash ```bash
# If /usr/src is missing, install it: # If /usr/src is missing, install it:
% sudo pkg install git % sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
3. **Herramientas de build instaladas**: 3. **Herramientas de build instaladas**:

View file

@ -792,7 +792,7 @@ A partir deste ponto, sempre que este livro citar um arquivo como `/usr/src/sys/
Clone com Git: Clone com Git:
```console ```console
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
Isso levará alguns minutos e fará o download de vários gigabytes. Quando terminar, você terá a árvore completa de código-fonte do kernel disponível. Isso levará alguns minutos e fará o download de vários gigabytes. Quando terminar, você terá a árvore completa de código-fonte do kernel disponível.

View file

@ -255,7 +255,7 @@ Por enquanto, estamos compilando apenas um arquivo de código-fonte de cada vez.
Para armazenar uma cópia local completa do código-fonte do FreeBSD, você precisará de aproximadamente 3,6 GB de espaço em disco livre. Você pode instalá-lo usando Git executando o seguinte comando: Para armazenar uma cópia local completa do código-fonte do FreeBSD, você precisará de aproximadamente 3,6 GB de espaço em disco livre. Você pode instalá-lo usando Git executando o seguinte comando:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
Isso dará a você acesso a todo o código-fonte, que vamos referenciar com frequência ao longo deste livro. Isso dará a você acesso a todo o código-fonte, que vamos referenciar com frequência ao longo deste livro.

View file

@ -13120,7 +13120,7 @@ Antes de começar, certifique-se de que você possui:
```bash ```bash
# If /usr/src is missing, install it: # If /usr/src is missing, install it:
% sudo pkg install git % sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
3. **Ferramentas de build instaladas**: 3. **Ferramentas de build instaladas**:

View file

@ -256,7 +256,7 @@ Makefile是一个名为Makefile的纯文本文件,定义如何构建你的程
要存储完整的FreeBSD源代码本地副本,你需要大约3.6 GB的可用磁盘空间。你可以使用Git通过运行以下命令安装它: 要存储完整的FreeBSD源代码本地副本,你需要大约3.6 GB的可用磁盘空间。你可以使用Git通过运行以下命令安装它:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
这将给你访问所有源代码的权限,我们将在本书中频繁引用这些源代码。 这将给你访问所有源代码的权限,我们将在本书中频繁引用这些源代码。

View file

@ -12953,7 +12953,7 @@ options MALLOC_DEBUG_MAXZONES=8
```bash ```bash
# If /usr/src is missing, install it: # If /usr/src is missing, install it:
% sudo pkg install git % sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src % sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
``` ```
3. **已安装构建工具**: 3. **已安装构建工具**:
@ -15862,4 +15862,4 @@ static int mydrv_detach(device_t dev) {
/* Set pointers to NULL after freeing */ /* Set pointers to NULL after freeing */
return (0); /* or EBUSY if can't detach */ return (0); /* or EBUSY if can't detach */
} }
``` ```