Thanks to visit codestin.com
Credit goes to github.com

Skip to content

git-snapshot should restore index #64

@Brickster

Description

@Brickster
$ git status --short
MM CHANGELOG.md
M  CONTRIBUTING.md
 M README.md
$ git snapshot
$ git status --short
 M CHANGELOG.md
 M CONTRIBUTING.md
 M README.md

Using --index when applying the stash will preserve the index.

$ git reset --hard
HEAD is now at 961a730 staged with to tuck
$ git stash apply --index --quiet
$ git status --short
MM CHANGELOG.md
M  CONTRIBUTING.md
 M README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions