DEV Community

Adetunji Ojekunle
Adetunji Ojekunle

Posted on • Originally published at adetunjio.bearblog.dev on

You want to clone a specific commit - git

So you want to git clone a specific commit, but you can't really do that for now (tell me if you have a different way). There's a clever work around I use;

  • Clone the entire repo
  • git reset --hard [commit-id]| [commit-id] will be the specific commit you are interested in, I assume you know the specific commit either by looking at the commit history or just do git log.

Top comments (0)