Skip to content

Commit

Permalink
feat: git checkout -ResetPath ( Fixes #269 )
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Apr 16, 2024
1 parent 06a6dc9 commit bfc117a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions docs/Git.Checkout.Input-Extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,28 @@ The name of a new branch
#### **ResetBranchName**
The name of a branch to reset.

|Type |Required|Position|PipelineInput |Aliases |
|----------|--------|--------|---------------------|---------------------|
|`[String]`|false |named |true (ByPropertyName)|Reset<br/>ResetBranch|
|Type |Required|Position|PipelineInput |Aliases |
|----------|--------|--------|---------------------|-----------|
|`[String]`|false |named |true (ByPropertyName)|ResetBranch|

#### **ResetPath**
One or more specific paths to reset.
This will overwrite the contents of the files with the contents of the index.

|Type |Required|Position|PipelineInput |Aliases|
|------------|--------|--------|---------------------|-------|
|`[String[]]`|false |named |true (ByPropertyName)|Reset |

#### **Detach**
If set, will checkout a branch in a detached state.

|Type |Required|Position|PipelineInput|
|----------|--------|--------|-------------|
|`[Switch]`|false |named |false |
|Type |Required|Position|PipelineInput |
|----------|--------|--------|---------------------|
|`[Switch]`|false |named |true (ByPropertyName)|

---

### Syntax
```PowerShell
Extensions/Git.Checkout.Input.Ugit.Extension.ps1 [-BranchName <String>] [-PullRequest <Int32>] [-NewBranchName <String>] [-ResetBranchName <String>] [-Detach] [<CommonParameters>]
Extensions/Git.Checkout.Input.Ugit.Extension.ps1 [-BranchName <String>] [-PullRequest <Int32>] [-NewBranchName <String>] [-ResetBranchName <String>] [-ResetPath <String[]>] [-Detach] [<CommonParameters>]
```

0 comments on commit bfc117a

Please sign in to comment.