Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2021 21:47:06 +0000
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   =?UTF-8?Q?cd_/usr/src_=26=26_git_clone_=e2=80=a6_https=3a//git=2efr?= =?UTF-8?Q?eebsd=2eorg/doc=2egit_=e2=80=a6_=28was=3a_converting_docs_to_git?= =?UTF-8?Q?=29?=
Message-ID:  <6a6256a1-2645-dc14-aaa3-535620455493@gmail.com>
In-Reply-To: <603a2388-f738-ec4a-8b52-7b34d93e08f7@gmx.net>
References:  <24559.35428.827584.263560@jerusalem.litteratus.org> <603a2388-f738-ec4a-8b52-7b34d93e08f7@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/01/2021 21:00, CerebrosuS wrote:

> Hello,
>
> git clone https://github.com/freebsd/freebsd-doc.git
>
> Maybe?
>
> Am 01.01.21 um 21:47 schrieb Robert Huff:
>> Hello:
>>     Does anyone here know the correct invocation for the initial
>> download of the doc source tree using git?  I found an example that
>> seems to have worked for src, but not for doc.  This will be a
>> read-only copy. …


Taking a hint from the foot of <https://cgit.freebsd.org/doc/>, here's mine:

cd /usr/src && git clone --depth 1 https://git.freebsd.org/doc.git doc

Subsequent updates:

git -C /usr/src/doc pull --ff-only

Example
=======

root@mowa219-gjp4-8570p:~ # cd /usr/src && git clone --depth 1 
https://git.freebsd.org/doc.git doc
Cloning into 'doc'...
remote: Enumerating objects: 13158, done.
remote: Counting objects: 100% (13158/13158), done.
remote: Compressing objects: 100% (10824/10824), done.
remote: Total 13158 (delta 4045), reused 8506 (delta 1966), pack-reused 0
Receiving objects: 100% (13158/13158), 87.20 MiB | 868.00 KiB/s, done.
Resolving deltas: 100% (4045/4045), done.
Updating files: 100% (11379/11379), done.
root@mowa219-gjp4-8570p:/usr/src # ls -hl
total 17
drwxr-xr-x  23 root  wheel    27B Jan  1 21:42 doc
drwxr-xr-x  26 root  wheel    44B Dec 31 17:36 freebsd-current
root@mowa219-gjp4-8570p:/usr/src # cd
root@mowa219-gjp4-8570p:~ # git -C /usr/src/doc pull --ff-only
Already up to date.
root@mowa219-gjp4-8570p:~ #

----

YMMV



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6256a1-2645-dc14-aaa3-535620455493>