git步骤备份

1. How to get code

1.0 sign-in gerrit (only for the very first time)

    §  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

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

posted @ 2013-03-12 09:02  qiangzhu  阅读(1661)  评论(0编辑  收藏  举报