I have a repo created via GitPython library that has some uncommitted changes. I want to stash those changes. How do I do it?
Searching for "stash" in the GitPython docs returned no results.
I have a repo created via GitPython library that has some uncommitted changes. I want to stash those changes. How do I do it?
Searching for "stash" in the GitPython docs returned no results.
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')
repo.git
. –
Isologous © 2022 - 2024 — McMap. All rights reserved.