I'm working on a free proyect over Github. I fork it, made some changes, did a PR and everything worked ok (PR was accepted).
Then I update my fork with upstream, did some other changes, and made another PR.
Then I realice that my PR included all the commits I pushed earlier, and every file I modify, even the ones I already sent.
I made the upstream to be up to date, but I failed somewhere, or my fork, never understood that I was up to date (I even made the push).
So to avoid that, I made a branch only with the file I changed. However, the PR still want to send all the commits I made to the repo. The files in this case, are ok, only modified files are on the PR
So, what is the correct way to work with a fork?
Did I missed a step after upstream and push? or should I delete my fork after every PR and start all over again?
git rebase
, or creating a branch off the upstream master). These issues tend to happen when PRs aren't merged as a real merge, but are rebased or squashed. However, this is not the place for this kind of help. Ask on Stack Overflow if you need help with using Git. Ask on Open Source if you are interested customs and common practices of open source development.