How to Git Clone a Specific Commit

Step by step guide to fetch a single commit from GitHub or GitLab using fetch and checkout with shallow and sparse options