Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save santosrai/89e27de2e5e58dc5f5ac38575710455f to your computer and use it in GitHub Desktop.
Save santosrai/89e27de2e5e58dc5f5ac38575710455f to your computer and use it in GitHub Desktop.
How to clone repository with specific commit?
1. View all commits and copy commithash
- git log
2. Clone repo
- git clone <url>
3. Goto Project folder
- cd $PROJECT_NAME
4. Checkout with commithash
- git checkout [commithash]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment