On 11/20/13 7:13 AM, Petr Bena wrote:
<snip>
What am I supposed to do in order to push multiple separate patches?
The short answer is: If you're working on two unrelated things, do them on separate branches.
If you /already/ have two patches on the same branch and realize you want to split them out, you're a good candidate for a fresh branch + a cherry-pick, as described here:
https://wikitech.wikimedia.org/wiki/Help:Git_rebase#Don.27t_panic
I won't go so far as to say that fresh branch + cherry-pick fixes /every/ git problem, but it fixes a lot of 'em! The only caveat is that this only works if your workflow generally involves storing all your pending changes in patches rather than as local file diffs or in the index.
I'm interested in elaborating the instructions on that wiki page -- let me know if it's confusing.
-Andrew