I've forked a project on GitHub. I need to squash the original commits before making changes/commits to my forked project. However, I wondered if I would be able to create a pull request in order to merge my changes back to the original project. Can this be done?
I tried to do it in a test project but it seems to be the case that I can't do the pull request as the network shows that the two projects are no longer connected. Here is what I did:
The network looked like the following:
original forked
o (git init)
|
o (add file)
|
o (add file)
o (squashing commits)
|
o (update file)
Maybe I did something wrong? Or my setup is incorrect? Or it just can't be done...
I confirm: the PR needs to be done in a dedicated branch, based on a common history between the original repo and the fork.
If you squash the first commits, you change that common history.
You need to communicate with the original project in order for his/her owner to make the required changes.
Then you can fork that repo, and make new PRs.