git clone remote Specific branch

Source: Internet
Author: User
Tags pack git clone



Git Clone Command parameters:

Using the command: Git clone-help[Plain] View plain copy $ git clone -help   usage: git clone [options] [--]  <repo> [<dir>]          -v, --verbose          be more verbose       - q, --quiet           be more quiet        --progress             force progress reporting       -n, --no-checkout      don ' t create a checkout       --bare                 create a bare  repository       --mirror               create a mirror repository  (implies bare)         -l, --local           to  clone from a local repository       --no-hardlinks         don ' T use local hardlinks, always copy        -s, --shared           setup as shared repository       --recursive            initialize submodules in the clone        --recurse-submodules  initialize submodules in  the clone       --template <template-directory>                               directory from which templates will be used        --reference <repo>    reference repository       -o, --origin <name>   use <name>  instead of  ' origin '  to track upstream       -b, -- branch <branch>                              checkout <branch > instead of the remote ' s head       -u, -- upload-pack <path>                              path to git-upload-pack on  the remote       --depth <depth>        create a shallow clone of that depth        --single-branch       clone only one branch, head  or --branch       --separate-git-dir <gitdir>                              separate git dir from working tree        -c, --config <key=value>                               set config inside the new repository  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.