On Tuesday, October 17, 2017 at 9:42:25 PM UTC+5:45, 龚泽龙 wrote: > > Do you mean that I am actually on the branch android-8.0.0_r17 regardless > of the fact: > >> >> zelongg@zelongg:~/Android/source/aosp/.repo/manifests$ git branch >> * default > > > So how can I check whether I have switched to another branch and which > branch I am on? > > On Monday, October 16, 2017 at 9:54:31 PM UTC+8, [email protected] > wrote: >> >> You should use this command: >> repo init -b android-8.0.0_r17 >> repo sync >> >> The first command runs fast, it sets some information about this branch. >> The second command may cost lots of hours. It needs pull code about this >> branch from server. After "sync success", you can see the android code. >> >> >> 在 2017年10月15日星期日 UTC+8上午2:10:09,龚泽龙写道: >>> >>> zelongg@zelongg:~/Android/source/aosp$ repo init -b android-8.0.0_r17 >>> >>> Your identity is: zelongg <[email protected]> >>> If you want to change this, please re-run 'repo init' with --config-name >>> >>> Testing colorized output (for 'repo diff', 'repo status'): >>> black red green yellow blue magenta cyan white >>> bold dim ul reverse >>> Enable color display in this user account (y/N)? >>> >>> Type "y", and click enter >>> >>> repo has been initialized in /home/zelongg/Android/source/aosp >>> zelongg@zelongg:~/Android/source/aosp$ >>> >>> >>> zelongg@zelongg:~/Android/source/aosp$ cd .repo/manifests >>> zelongg@zelongg:~/Android/source/aosp/.repo/manifests$ ls >>> default.xml >>> zelongg@zelongg:~/Android/source/aosp/.repo/manifests$ git branch >>> * default >>> >>> It seems that it is still on branch default, which means master >>> >> git branch -a
-- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
