Clone a Git Repository with a specific commit
January 08, 2025
First you need to clone the repository that you want to get a specific commit.
git clone <repository-url>
Then navigate into cloned repository and check out the commit you need using its hash.
git checkout <commit-hash>
This will put your working directory in a detached HEAD state at the specified commit.