Skip to content
Snippets Groups Projects
Commit 60253a60 authored by Sebastian Schuberth's avatar Sebastian Schuberth Committed by Junio C Hamano
Browse files

docs: clarify that --depth for git-fetch works with newly initialized repos

The original wording sounded as if --depth could only be used to deepen or
shorten the history of existing repos. However, that is not the case. In a
workflow like

    $ git init
    $ git remote add origin https://github.com/git/git.git


    $ git fetch --depth=1

The newly initialized repo is properly created as a shallow repo.

Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent fc142811
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment