Silver Flash
Silver Flash

Reputation: 1071

Git retrieve a file from commits without overwriting

Is there a way to retrieve a single or multiple files from previous commits without overwriting my current changes. What I mean is if there is a native way to retrieve an entire file and save it at some directory. I know I can accomplish this with stashes, but I am hoping for a much simpler way.

Upvotes: 0

Views: 35

Answers (1)

matt
matt

Reputation: 535606

Finally got it....

git show 21237cc:welcome.blade.php > /tmp/welcome.blade.php

Upvotes: 1

Related Questions