mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 05:17:44 +02:00
Updated the manuals
This commit is contained in:
@ -7,7 +7,7 @@ NOTE: To be used with care! This cannot be undone!
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/clean-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
|
||||
-path <String>
|
||||
Specifies the file path to the local Git repository (current working directory by default)
|
||||
@ -31,7 +31,7 @@ PS> ./clean-repo.ps1 C:\Repos\rust
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Removing untracked files in repository...
|
||||
⏳ (4/4) Removing untracked files in submodules...
|
||||
✅ Cleaned up 📂rust repo in 2s.
|
||||
✅ Cleaned up repo 📂rust in 2s.
|
||||
|
||||
```
|
||||
|
||||
@ -60,7 +60,7 @@ Script Content
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Removing untracked files in repository...
|
||||
⏳ (4/4) Removing untracked files in submodules...
|
||||
✅ Cleaned up 📂rust repo in 2s.
|
||||
✅ Cleaned up repo 📂rust in 2s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -93,7 +93,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✅ Cleaned up 📂$repoName repo in $($elapsed)s."
|
||||
"✅ Cleaned up repo 📂$repoName in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -101,4 +101,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:52)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*
|
||||
|
Reference in New Issue
Block a user