Auto-tools/Projects/Mozbase: Difference between revisions

Jump to navigation Jump to search
Line 174: Line 174:
Here an example how to land a patch from the '''feature''' branch onto '''master''':
Here an example how to land a patch from the '''feature''' branch onto '''master''':


* git pull origin master # make sure master is up to date
* git checkout feature
* git rebase master # make sure patch is a strict descendant of master
* '''TEST''' the patch by [https://wiki.mozilla.org/Auto-tools/Projects/MozBase#Running_the_tests running existent tests]
* git checkout master
* git checkout master
* git checkout -b feature
* git merge feature
* git pull remote feature # or git am patch
* '''TEST''' the patch by [https://wiki.mozilla.org/Auto-tools/Projects/MozBase#Running_the_tests running existent tests]
* git merge --squash feature
* git commit -a -m "Bug XYZ - Add new feature to mozbase; r=reviewer" --author="foo <foo@bar>"
* git push git@github.com:mozilla/mozbase.git master
* git push git@github.com:mozilla/mozbase.git master


Confirmed users
955

edits

Navigation menu