I want to get the OpenCV2.4.2 source files for windows in order to generate the libraries myself. I run the command
git clone git://code.opencv.org/opencv.git
This actually gets the 2.4.9 repository which I don't want. There is a GIT option
git reset --hard <commit code>
that is supposed to get back to the desired commit. The thing is that I found that there are way too many commits and I don't know which one is the version 2.4.2!
Just look for the tags using:
git tag
Look for OpenCV 2.4.2, or whatever you want, and then checkout with your election:
git checkout 2.4.2
in your case.
If you want to pull the latest 2.4 branch, then you can do:
git clone -b 2.4 --single-branch https://github.com/Itseez/opencv.git Opencv-2.4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With