useGit API
Preparing search index...
currentBranch
Function currentBranch
currentBranch
()
:
Promise
<
string
>
Get the current branch name.
Returns
Promise
<
string
>
Example
await
currentBranch
()
// main
Copy
Since
1.0.0
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
useGit API
Loading...
Get the current branch name.