Reputation: 1071
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
Reputation: 535606
Finally got it....
git show 21237cc:welcome.blade.php > /tmp/welcome.blade.php
Upvotes: 1