Question

Is there a way to open a version of a Git repository within Windows explorer?

I only see the current state in my explorer but I want to see a specific version. There must be a way with Git.

Was it helpful?

Solution

The simplest way would simply to checkout the version (SHA1) you ant to see of that repo:

git checkout SHA1

Note that would leave the repo in a detached-HEAD mode.

If you are working in that repo and want to compare it to an older version, you can clone that repo to another folder, and reset it at that SHA1:

git clone myRepo 
cd myRepo
git reset --hard <SHA1>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top