miaojianyuwx@MIAOJIANYU /cygdrive/d
$ mkdir cn202sr_base
miaojianyuwx@MIAOJIANYU /cygdrive/d
$ cd cn202sr_base/
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base
$ repo init -u ssh://[email protected]:29418/Android/oreo/platform/manifest --repo-url=ssh://[email protected]:29418/tools/repo -b cn202sr
处理 delta 中: 100% (273/273), 完成.
来自 ssh://192.168.20.45:29418/Android/oreo/platform/manifest
* [新分支] cn202sr -> origin/cn202sr
* [新分支] cn202sr-id -> origin/cn202sr-id
* [新分支] master -> origin/master
Your identity is: miaojianyuwx
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /cygdrive/d/cn202sr_base
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base
$ cp ../git_repos/manifest.xml .repo/
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base
$ cd .repo/
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ vim manifest.xml(修改挂载分支信息)
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ ls
manifest.xml manifests manifests.git repo
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ repo sync
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ vim manifest.xml
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ vim manifest.xml
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/.repo
$ repo sync
正在检出文件: 100% (2694/2694), 完成.检出文件: 41% (1105/2694)
Syncing work tree: 100% (26/26), done.
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps/Launcher
$ git branch -vva
remotes/hsae/cn202sr 45698c5 [Launcher] get CarPlay Connect state
remotes/hsae/cn202sr-id 6a016b0 [Launcher]delete welcome cn202sr-id
remotes/hsae/master 7605c54 Initial empty repository
remotes/m/cn202sr -> hsae/cn202sr
* (非分支) 45698c5 [Launcher] get CarPlay Connect state
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps/Launcher
$ cd ..
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps
$ repo start cn202sr --all(搭建分支newbranchname)
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps
$ cd Launcher/
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps/Launcher
$ git branch -vva
* cn202sr 45698c5 [hsae/cn202sr] [Launcher] get CarPlay Connect state
remotes/hsae/cn202sr 45698c5 [Launcher] get CarPlay Connect state
remotes/hsae/cn202sr-id 6a016b0 [Launcher]delete welcome cn202sr-id
remotes/hsae/master 7605c54 Initial empty repository
remotes/m/cn202sr -> hsae/cn202sr
miaojianyuwx@MIAOJIANYU /cygdrive/d/cn202sr_base/packages/apps/Hsae_Apps/Launcher
$ git pull
已经是最新的。