Skip to content

Instantly share code, notes, and snippets.

@DevanB
Created November 14, 2018 16:26
Show Gist options
  • Save DevanB/b50aa638c1bb7e849f17c9cbb3fb4c8a to your computer and use it in GitHub Desktop.
Save DevanB/b50aa638c1bb7e849f17c9cbb3fb4c8a to your computer and use it in GitHub Desktop.

Pull file from a stash

git checkout stash [stash index] -- [filename]

Also interesting to know that when you do a git stash, git saves two commits: one for the state of the index, and one for the state of the working copy (which is a merge between the index and the original HEAD).

Created with 📕TILed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment