Debian Codegraph @

examples/git/git_clone.py

raw
1 """usage: git clone [options] [--] <repo> [<dir>]
2
3 -v, --verbose be more verbose
4 -q, --quiet be more quiet
5 --progress force progress reporting
6 -n, --no-checkout don't create a checkout
7 --bare create a bare repository
8 --mirror create a mirror repository (implies bare)
9 -l, --local to clone from a local repository
10 --no-hardlinks don't use local hardlinks, always copy
11 -s, --shared setup as shared repository
12 --recursive initialize submodules in the clone
13 --recurse-submodules initialize submodules in the clone
14 --template <template-directory>
15 directory from which templates will be used
16 --reference <repo> reference repository
17 -o, --origin <branch>
18 use <branch> instead of 'origin' to track upstream
19 -b, --branch <branch>
20 checkout <branch> instead of the remote's HEAD
21 -u, --upload-pack <path>
22 path to git-upload-pack on the remote
23 --depth <depth> create a shallow clone of that depth
24
25 """
26 from docopt import docopt
27
28
29 if __name__ == '__main__':
30 print(docopt(__doc__))