
Last chance! 50% off unlimited learning
Sale ends in
Git Branch Utilities
git_default_br()git_current_br()
Character. The name of the respective branch if found, otherwise NULL
.
git_default_br()
: gets the default "main" branch, typically either master
, main
, or trunk
.
git_current_br()
: gets the current branch.