repo <- git_init(tempfile("git-init-example-"))
## switch working directory to the repo
owd <- setwd(repo)
## Config local user and make a commit
git_config(user.name = "thelma", user.email = "thelma@example.org")
write("I don't ever remember feeling this awake.", "thelma.txt")
git_commit("thelma.txt", message = "thelma is awake")
git_history()
setwd(owd)
Run the code above in your browser using DataLab