mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 23:51:18 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script cleans all Git repositories in a folder from untracked fi
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./clean-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/clean-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
|
||||
-parentDir <String>
|
||||
Specifies the path to the parent folder (current working dir by default)
|
||||
@ -92,7 +92,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clean -xfd -f' in submodules failed with exit code $lastExitCode" }
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Cleaned $numFolders Git repos under 📂$parentDirName in $elapsed sec"
|
||||
"✅ Cleaned $numFolders Git repos under 📂$parentDirName in $elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -100,4 +100,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of clean-repos.ps1 as of 08/15/2024 09:50:46)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of clean-repos.ps1 as of 11/08/2024 12:34:47)*
|
||||
|
Reference in New Issue
Block a user