Is there a way to get a specific version (from a specific commit) of a file in Visual Studio 2015 - Team Explorer/Team Services Git?
I simply wish to run the solutio
(This works in both VS2015 and VS2017.)
Note this question, and this answer, is for a single file (or small number of files). If you want to do this for many files, simply make a new branch from, or reset hard to, the desired commit like the other answers propose. But since checking out an old commit can take a lot of time, especially for large repos, I believe this is the simplest way for a single file:
Now you can do whatever you want to do with that file, and then undo the pending change when you're done.