GitPython -- How to 'git stash' changes to a GitPython repository? GitPython -- How to 'git stash' changes to a GitPython repository? git git

GitPython -- How to 'git stash' changes to a GitPython repository?


Per the docs, "Using git directly":

In case you are missing functionality as it has not been wrapped, you may conveniently use the git command directly. It is owned by each repository instance.

Thus, you could call git stash save with

repo.git.stash('save')