GIT-CLONE(1) (NAME) git-clone - (SYNOPSIS) git clone [--template=] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o ] [-b ] [-u ] [--reference ] [--dissociate] [--separate-git-dir ] [--depth ] [--[no-]single-branch] [--[no-]tags] [--recurse-submodules[=]] [--[no-]shallow-submodules] [--[no-]remote-submodules] [--jobs ] [--sparse] [--[no-]reject-shallow] [--filter= [--also-filter-submodules]] [--] [] (DESCRIPTION) ( git branch --remotes) (checkout) . git fetch git pull (master/main) ( --single-branch ). refs/remotes/origin remote.origin.url remote.origin.fetch . (OPTIONS) -l, --local << >> HEAD objects refs . .git/objects/ (hardlink) . ( /path/to/repo) --local (no-op). (URL) ( ). --no-local /path/to/repo . $GIT_DIR/objects . . --no-local . : (race) cp -r . --no-hardlinks .git/objects . . -s, --shared .git/objects/info/alternates . . . ( ) ( ) . ( git commit) git maintenance run --auto . ( git-maintenance(1).) . git repack --local --shared (pack) clone --shared . git gc --local . --shared git repack -a . --reference=, --reference-if-able= .git/objects/info/alternates . . --reference-if-able . --shared --dissociate . --dissociate --reference . -- . -q, --quiet . . -v, --verbose . . --progress --quiet . . --server-option=