mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Updated cd-repo.ps1
This commit is contained in:
parent
e6d8052c35
commit
5c8f29a255
@ -37,8 +37,9 @@ try {
|
||||
if (-not(Test-Path "$path" -pathType Container)) { throw "The path to 📂$path doesn't exist (yet)" }
|
||||
$path = Resolve-Path "$path"
|
||||
Set-Location "$path"
|
||||
Write-Host "📂$path • on Git branch: " -noNewline
|
||||
Write-Host "📂$path"
|
||||
|
||||
Write-Host "🌵Git branch " -noNewline
|
||||
& git status --short --branch --show-stash
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user