| show,git_repository-method {git2r} | R Documentation |
Brief summary of repository
## S4 method for signature 'git_repository' show(object)
object |
The repository |
None (invisible 'NULL').
## Not run:
## Initialize a temporary repository
path <- tempfile(pattern="git2r-")
dir.create(path)
repo <- init(path)
config(repo, user.name="Alice", user.email="alice@example.org")
## Brief summary of the repository
repo
## Create and commit a file
writeLines("Hello world!", file.path(path, "example.txt"))
add(repo, "example.txt")
commit(repo, "First commit message")
## Brief summary of the repository
repo
## End(Not run)