Description Usage Arguments Value
Uses git rev-parse –abbrev-ref to get the branch name when appropriate
1 | git_abbrev_ref(dir = getwd(), base_only = TRUE)
|
dir |
A directory |
base_only |
Logical, should only the first part of a foo/bar branch name be returned |
A character with the abbrev-ref
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.