mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-25 03:18:16 +02:00
Updated cd-repo.ps1
This commit is contained in:
parent
957bbe4c52
commit
40410344cc
@ -7,7 +7,7 @@
|
||||
Specifies the folder name of the Git repository
|
||||
.EXAMPLE
|
||||
PS> ./cd-repo.ps1 rust
|
||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
||||
📂C:\Repos\rust entered, current branch is: ## main ... origin/main
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -37,7 +37,7 @@ try {
|
||||
|
||||
$path = Resolve-Path "$path"
|
||||
Set-Location "$path"
|
||||
Write-Host "📂$path · on branch: " -noNewline
|
||||
Write-Host "📂$path entered, current branch is: " -noNewline
|
||||
& git status --short --branch --show-stash
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user