Git Clone extended input
Extends the input for git clone.
By default, if –progress is not found, it will be added to any git clone.
EXAMPLE 1
git clone https://github.com/MDN/content.git # This is a big repo. Progress bars will be very welcome.
If we don’t check things out, cloning is faster.
git clone https://github.com/PowerShell/PowerShell -NoCheckout
# (of course, that's because we're not copying files, just history)
We can also clone more quickly by only picking a certain number of commits
git clone https://github.com/Microsoft/vscode.git -Depth 1
# (of course, this will make the history lie to you,
# by saying everything was changed whenever anything was changed)
If set, will not check out files from the respository.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
Employ a sparse-checkout. Only files in the toplevel directory will be present by default. Sparse checkout can be configured with git sparse-checkout.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
Create a shallow clone with a history truncated to the specified number of commits
Type | Required | Position | PipelineInput |
---|---|---|---|
[UInt32] |
false | named | true (ByPropertyName) |
Create a shallow clone with a history after the specified time.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
One or more filters
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) |
If set, will clone nothing. This means not checking out, filtering everything from the tree, and using sparse checkout
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) | None Nada |
Extensions/Git.Clone.Input.UGit.Extension.ps1 [-NoCheckout] [-Sparse] [-Depth <UInt32>] [-Since <String>] [-Filter <String[]>] [-Nothing] [<CommonParameters>]