I'm no git expert by any means, so I want to make sure the following flow is good:
Any mistakes in there?
And then with that, what should I do with my feature branches on my local machine? Rebase them to my local master perhaps? Delete them (is that bad?)?
If they don't accept my requests, I'd still like to merge them into my local master. Will that screw anything up?
I'm trying to figure out the flow that allows me to submit feature-based requests, but also use my changes in my project regardless of their acceptance, and my local copy straight after they've accepted / rejected them.
Lots to read, but thanks for any help!
Edit: Found this, related article a day after. Doesn't answer to the complexity of my question, but still useful: http://codeigniter.com/news/contribution_guide#When:13:36:15Z
The submodule part complicates things a bit, but otherwise:
master
) that the original repo will have to update with your commits. For that, it is recommended to:
master
is up-to-date), master
(again master
is an example here) as one new branch (and test if your two new features initially developed in their own branch works together)master
As commented by koffie, a rebase is possible if you are the only one working on that feature branch (and a push --force
is then possible).
If you want to contribute back to a project, you shouldn't modify directly the history of commit of the branch you will contribute to: if you want to make a pull request to master
of an original repo, you shouldn't push anything to the master
of your fork (except commits coming from a pull from the original repo)
You should always work in a dedicated branch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With