useGit API
Preparing search index...
branchExists
Function branchExists
branchExists
(
name
:
string
)
:
Promise
<
boolean
>
Check if a local branch exists.
Parameters
name
:
string
Returns
Promise
<
boolean
>
Example
await
branchExists
(
"main"
)
Copy
Since
1.0.0
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
useGit API
Loading...
Check if a local branch exists.