On quarta-feira, 30 de março de 2016 09:41:12 PDT Rolland Dudemaine wrote: > git checkout -b temp origin/5.7 > git cherry-pick first-commit-sha second-commit-sha (or just one of those) > git push gerrit HEAD:refs/for/5.7 > git checkout 5.7 > git branch -D temp > > But git-gpush as Thiago mentioned may be still far better...
This is exactly what git gpush does, except that it does everything without changing your checkout, which means you won't trigger a full rebuild-the- world. It has a few more features beyond that, including the ability to pass reviewers in the command-line and handling of multiple patch groups in the same branch, for those who are crazy to develop like I am. Sometimes, the cherry-picking without checkout fails. So you may have to do the above anyway. If this happens often enough, like it does for me, I recommend having a separate clone or git new-workdir, so you aren't forced to rebuild the world. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
