|
| 1 | +% rush-clone(1) | Clone a GitHub package repository. |
| 2 | +% |
| 3 | +% August 2023 |
| 4 | + |
| 5 | +NAME |
| 6 | +================================================== |
| 7 | + |
| 8 | +**rush clone** - Clone a GitHub package repository. |
| 9 | + |
| 10 | +SYNOPSIS |
| 11 | +================================================== |
| 12 | + |
| 13 | +**rush clone** GITHUB_USER [PATH] [OPTIONS] |
| 14 | + |
| 15 | +DESCRIPTION |
| 16 | +================================================== |
| 17 | + |
| 18 | +Clone a GitHub package repository. |
| 19 | + |
| 20 | +This command clones the repository and registers it in the configuration file. |
| 21 | + |
| 22 | + |
| 23 | +ARGUMENTS |
| 24 | +================================================== |
| 25 | + |
| 26 | +GITHUB_USER |
| 27 | +-------------------------------------------------- |
| 28 | + |
| 29 | +Github user. |
| 30 | + |
| 31 | +This user is expected to have a repository named **rush-repo**. |
| 32 | + |
| 33 | +If you need to use a different name, use the **user/repo** syntax. |
| 34 | + |
| 35 | +- *Required* |
| 36 | + |
| 37 | +PATH |
| 38 | +-------------------------------------------------- |
| 39 | + |
| 40 | +Local path to clone the repository into. |
| 41 | + |
| 42 | +Default: ~/rush-repos/\<github_user\>/\<github_repo\> |
| 43 | + |
| 44 | + |
| 45 | +OPTIONS |
| 46 | +================================================== |
| 47 | + |
| 48 | +--ssh, -s |
| 49 | +-------------------------------------------------- |
| 50 | + |
| 51 | +Clone using SSH instead of HTTPS. |
| 52 | + |
| 53 | + |
| 54 | +--default, -d |
| 55 | +-------------------------------------------------- |
| 56 | + |
| 57 | +Set this as the default repository (same as **--name default**). |
| 58 | + |
| 59 | + |
| 60 | +--name, -n NAME |
| 61 | +-------------------------------------------------- |
| 62 | + |
| 63 | +Name to use in the config file. |
| 64 | + |
| 65 | +Default: GitHub user |
| 66 | + |
| 67 | + |
| 68 | +--shallow, -w |
| 69 | +-------------------------------------------------- |
| 70 | + |
| 71 | +Perform a shallow clone, instead of the default full clone. |
| 72 | + |
| 73 | + |
| 74 | +--ignore, -i |
| 75 | +-------------------------------------------------- |
| 76 | + |
| 77 | +Ignore (do not clone) if a repository with this name exists. |
| 78 | + |
| 79 | + |
| 80 | +DEPENDENCIES |
| 81 | +================================================== |
| 82 | + |
| 83 | +git |
| 84 | +-------------------------------------------------- |
| 85 | + |
| 86 | + |
| 87 | +EXAMPLES |
| 88 | +================================================== |
| 89 | + |
| 90 | +~~~ |
| 91 | +rush clone bobby |
| 92 | +
|
| 93 | +rush clone bobby --default |
| 94 | +
|
| 95 | +rush clone bobby/bobs-repo ./repos/bobby --ssh |
| 96 | +
|
| 97 | +rush clone bobby --name sample --ignore |
| 98 | +
|
| 99 | +~~~ |
| 100 | + |
| 101 | +SEE ALSO |
| 102 | +================================================== |
| 103 | + |
| 104 | +**rush**(1) |
| 105 | + |
| 106 | + |
| 107 | + |
0 commit comments