Advertisement
techmik

gerrit instructions

Sep 27th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1.  here is what i do, since i learned not to re-upload new but make a new patchset: using CMParts as an example
  2.  
  3. start on gingerbread branch
  4. git checkout -b mytestbranch
  5. change stuff, as many commits as you want, and then commit them
  6. git checkout -b mytestbranchrebased
  7. git rebase -i gingerbread
  8. on the commit msg screen (nano) leave the 1st "pick" alone, but change all the follwing to "squash"
  9. you will now have all your changes in 1 nice tidy commit
  10. checkout back to gingerbread branch and cd to the top of the tree (android/system/)
  11. repo start newbranch packages/apps/CMParts/
  12. cd packages/apps/CMParts.... (you will be on the new branch you just made)
  13. git cherry-pick <your rebased commit>
  14. repo upload packages/apps/CMParts
  15.  
  16. done
  17.  
  18. now, to add patchsets, go to that branch, make changes
  19. git add .
  20. git commit --amend     *do not change the Change id or blank line below it!!!*
  21. cd ~/android/system
  22. repo upload packages/apps/CMParts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement