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

I had to do the same with aws-sdk-go recently since they stopped supporting Go 1.4, yet AWS had my Preconfigured Docker configuration locked at Go 1.4 and unable to upgrade to Go 1.5.

  1. Fork the repo.
  2. Clone it locally: git clone [email protected]:__________
  3. Find the commit you want to go back to.
  4. Reset to that commit's SHA: git reset __________
  5. Get rid of changes: git add && git stash
  6. Push removal of changes to repo: git push --force

With that I was good to go to import the new repo that wouldn't break my application. Woohoo!


  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.