gitBranch | R Documentation |
Git branch strings
gitCurrentBranch(repo = getwd())
gitDefaultBranch(repo = getwd(), remote = "origin")
repo |
|
remote |
|
character(1)
.
Git branch name.
Updated 2022-05-02.
koopa::git_default_branch
(shell).
git branch
(shell).
git2r package.
## > repo <- file.path("~", "git", "monorepo", "r-packages", "r-koopa")
## > gitCurrentBranch(repo)
## ## [1] "develop"
## > gitDefaultBranch(repo)
## ## [1] "main"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.