Update new-branch.ps1

This commit is contained in:
Markus Fleschutz 2022-05-31 16:42:59 +02:00
parent e821fc3912
commit a924f76a99

View File

@ -1,6 +1,6 @@
<# <#
.SYNOPSIS .SYNOPSIS
Create a new Git branch Creates a new Git branch
.DESCRIPTION .DESCRIPTION
This PowerShell script creates and switches to a new branch in a Git repository. This PowerShell script creates and switches to a new branch in a Git repository.
.PARAMETER NewBranchName .PARAMETER NewBranchName
@ -49,7 +49,7 @@ try {
$RepoDirName = (get-item "$RepoDir").Name $RepoDirName = (get-item "$RepoDir").Name
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ new '$NewBranchName' branch created in 📂$RepoDirName repo based on '$CurrentBranchName' branch in $Elapsed sec" "✔️ new '$NewBranchName' branch created in 📂$RepoDirName repo in $Elapsed sec (based on '$CurrentBranchName' branch)"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"