GitHub fork a repo from previous commit

I've found a repository on GitHub I would like to fork - but not the current version.

I want to fork the repo as it was quite a few commits back - is this possible? The repo has not marked any releases, so I'm not sure how to do this. I could obviously copy the code as it was in that commit, but I would prefer to fork, as then I get the link back to the original repo.


You can only fork the current repository.

You can reset the forked repository's master branch to an earlier commit though, effectively giving you a repository in almost the same state as if you had forked it at that point.

See: How can I rollback a github repository to a specific commit?

链接地址: http://www.djcxy.com/p/15822.html

上一篇: 重命名远程分支

下一篇: GitHub从之前的提交中分离出一个回购