message: Optional description. Defaults to current time.
index: All changes already added to the index are left intact in the working directory. Default is FALSE
untracked: All untracked files are also stashed and then cleaned up from the working directory. Default is FALSE
ignored: All ignored files are also stashed and then cleaned up from the working directory. Default is FALSE
stasher: Signature with stasher and time of stash
Returns
invisible git_stash object if anything to stash else NULL
Examples
## Not run:## Initialize a temporary repositorypath <- tempfile(pattern="git2r-")dir.create(path)repo <- init(path)# Configure a userconfig(repo, user.name ="Alice", user.email ="alice@example.org")# Create a file, add and commitwriteLines("Hello world!", file.path(path,"test.txt"))add(repo,'test.txt')commit(repo,"Commit message")# Change filewriteLines(c("Hello world!","HELLO WORLD!"), file.path(path,"test.txt"))# Check status of repositorystatus(repo)# Create stash in repositorystash(repo)# Check status of repositorystatus(repo)# View stashstash_list(repo)## End(Not run)