I want to do a pull in GitHub and want to perform a GIT Rebase to clean up intermediate commits before issuing a pull request. I want to know if the following procedure is proper.
While I'm pretty sure no one is building on top of my branch, for future references, I want to avoid rewriting history (avoid pulling the rug out from under others). I'm thinking of a cherry-pick procedure like the following (assuming my feature branch is called "feature_branch"). Note that my intention for the original feature_branch is to note that it is now abandoned.
- Create a new branch from the head of master, something like "feature_pull_rebase"
- Replay all commits (cherry-pick) from the "feature_branch" onto the "feature_pull_rebase"
- Make pull request from the "feature_pull_request" onto master.
Is this a proper way to handle this? Or is there some danger with this?
EDIT: The master branch is not under my control, it's a repository I want to contribute to.