git步骤备份
1. How to get code
1.0 sign-in gerrit (only for the very first time)
- login with your LDAP account on http://216.224.176.142:8080/
- setup Preferred email, you need go to your email box to click the link ( if you don't get the email in minutes, please check your spam box)
- upload your ~/.ssh/id_rsa.pub (http://216.224.176.142:8080/#/settings/ssh-keys)
- if you dont have an existing id_rsa.pub, run the following command to create it:
§ ssh-keygen -t rsa
1.1 Nexus 7
- repo init -u ssh://<your_ldap_id>@216.224.176.142:29418/gmpoc/manifest -m gmpoc.xml
- repo sync
- source build/envsetup.sh
- lunch gm_grouper-userdebug or lunch 8
- make -j4
1.2 TI
- repo init -u ssh://<your_ldap_id>@216.224.176.142:29418/ti/panda5/platform/omapmanifest -b gmpoc_maindev -m gmpoc_panda5.xml
- repo sync
- source build/envsetup.sh
- Android Panda 5
- lunch gm_panda5-userdebug
- Greenhills Panda 5
- lunch gm_ghs_panda5-userdebug
- make -j4
2.Modify git config and commit code
Modify the user.name of git.
Command: git config --global user.name <your_ldap_account>
replace the red part with your ldap account.
Before doing code commit checkout a branch for gmpoc/gmpoc_maindev
Command: git checkout -b <your_local_branch>
gmpoc/gmpoc_maindev
Push command: git push gmpoc
<your_local_branch>:refs/for/gmpoc_maindev