mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01:00
Update switch-branch.ps1
This commit is contained in:
parent
556beb2e9e
commit
dd5b74feed
@ -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
|
||||
|
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user