mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-03 23:24:45 +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
|
Specifies the folder name of the Git repository
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./cd-repo.ps1 rust
|
PS> ./cd-repo.ps1 rust
|
||||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
📂C:\Repos\rust entered, current branch is: ## main ... origin/main
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -37,7 +37,7 @@ try {
|
|||||||
|
|
||||||
$path = Resolve-Path "$path"
|
$path = Resolve-Path "$path"
|
||||||
Set-Location "$path"
|
Set-Location "$path"
|
||||||
Write-Host "📂$path · on branch: " -noNewline
|
Write-Host "📂$path entered, current branch is: " -noNewline
|
||||||
& git status --short --branch --show-stash
|
& git status --short --branch --show-stash
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user