Temporary stash away changed from the working directory.

git_stash_save(message = "", keep_index = FALSE,
  include_untracked = FALSE, include_ignored = FALSE, repo = ".")

git_stash_pop(index = 0, repo = ".")

git_stash_drop(index = 0, repo = ".")

git_stash_list(repo = ".")

Arguments

message

optional message to store the stash

keep_index

changes already added to the index are left intact in the working directory

include_untracked

untracked files are also stashed and then cleaned up from the working directory

include_ignored

ignored files are also stashed and then cleaned up from the working directory

repo

a path to an existing repository, or a git_repository object as returned by git_open, git_init or git_clone.

index

The position within the stash list. 0 points to the most recent stashed state.