Eugen Konkov
Eugen Konkov

Reputation: 25133

Is it possible compare staged and stashed versions of files in git?

Some times ago I stashed files. Now I stage some.

Is there a way to compare those versions of files?

Upvotes: 2

Views: 69

Answers (1)

Paolo
Paolo

Reputation: 26074

You can use:

git diff --cached stash@{n} -- file

where n corresponds to the stash number of the stash you wish to diff against.

Upvotes: 5

Related Questions