I'm a beginner and I'm trying to clone using HTTPs a repository (sample.com/component.git) but from a specific commit ID.
I really don't know where to start. Should I fetch the repoistory, then checkout that commit ID and finally clone it?
git fetch sample.com/component.git
git checkout 9a36b9e79tbb9132c7020a5bd5694c7cefce8cff
git clone sample.com/component.git
OR
git clone sample.com/component.git 9a36b9e79tbb9132c7020a5bd5694c7cefce8cff
Any help in doing this correctly, or if there's a better way would be highly appreciated