Skip to content

How to get list of stashed changes #1076

@guptagaurav0075

Description

@guptagaurav0075

Documentation is throwing me off a little bit, can somebody please help in how we can perform the operation similar to the command: git stash list

Tried the below but it didn't work for list, but worked for drop and save.

from git import Repo
repo = Repo("Some Git Repo Path")
print(repo.git.stash("list"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions