Update switch-branch.ps1

This commit is contained in:
Markus Fleschutz 2021-03-16 15:44:36 +01:00
parent 556beb2e9e
commit dd5b74feed
3 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ speak-joke.ps1, speaks the next joke by text-to-speech (TTS)
speak-test.ps1, performs a speak test by text-to-speech (TTS)
speak-text.ps1, speaks the given text by text-to-speech (TTS)
speak-time.ps1, speaks the current time by text-to-speech (TTS)
switch-branch.ps1, switches the current Git repository to the given branch (including submodules)
switch-branch.ps1, switches the branch in the current/given Git repository (including submodules)
switch-shelly1.ps1, switches a Shelly1 device in the local network
take-screenshot.ps1, takes a single screenshot
take-screenshots.ps1, takes multiple screenshots

1 Script Description
120 speak-test.ps1 performs a speak test by text-to-speech (TTS)
121 speak-text.ps1 speaks the given text by text-to-speech (TTS)
122 speak-time.ps1 speaks the current time by text-to-speech (TTS)
123 switch-branch.ps1 switches the current Git repository to the given branch (including submodules) switches the branch in the current/given Git repository (including submodules)
124 switch-shelly1.ps1 switches a Shelly1 device in the local network
125 take-screenshot.ps1 takes a single screenshot
126 take-screenshots.ps1 takes multiple screenshots

View File

@ -109,7 +109,7 @@ Collection of PowerShell Scripts
* [fetch-repos.ps1](Scripts/fetch-repos.ps1) - fetches updates for all Git repositories under the current/given directory (including submodules)
* [list-branches.ps1](Scripts/list-branches.ps1) - lists all branches in the current/given Git repository
* [list-commits.ps1](Scripts/list-commits.ps1) - lists all commits in the current/given Git repository
* [switch-branch.ps1](Scripts/switch-branch.ps1) - switches the current Git repository to the given branch (including submodules)
* [switch-branch.ps1](Scripts/switch-branch.ps1) - switches the branch in the current/given Git repository (including submodules)
* [update-repos.ps1](Scripts/update-repos.ps1) - updates all Git repositories under the current/given directory (including submodules)
🔎 Scripts for PowerShell

View File

@ -1,7 +1,7 @@
#!/bin/powershell
<#
.SYNTAX ./switch-branch.ps1 [<branch>] [<repo-dir>]
.DESCRIPTION switches the current/given Git repository to the given branch (including submodules)
.DESCRIPTION switches the branch in the current/given Git repository (including submodules)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
@ -9,7 +9,7 @@
param($Branch = "", $RepoDir = "$PWD")
if ($Branch -eq "") {
$Branch = read-host "Enter branch name to switch to"
$Branch = read-host "Enter branch to switch to"
}
try {