Search code examples
gitgit-commitgit-fork

how do I fork an older version of a github project?


how do I fork an older version of a github project? I want to fork on a specific commit of a project, commit 3b5915a21a997f88fa16a6feb5b893953a06b0b5 of this

project: https://github.com/aseprite/aseprite, where a recent commit broke the main line. I really want to fork fork version 1.1.8.


Solution

    1. Fork the entire project. This is the only way.

    2. Create a new branch off of that commit.

      $ git checkout -b my-branch 3b5915a21a

    3. Commit changes to your branch.

    4. Push the changes to your forked repository.

    5. Submit a Pull Request back to the original project.