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.
- Fork the repo.
- Clone it locally:
git clone [email protected]:__________
- Find the commit you want to go back to.
- Reset to that commit's SHA:
git reset __________
- Get rid of changes:
git add && git stash
- 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!
Fork the entire project. This is the only way.
Create a new branch off of that commit.
$ git checkout -b my-branch 3b5915a21a
Commit changes to your branch.
Push the changes to your forked repository.
Submit a Pull Request back to the original project.