What is Repo and Why does Google use it?

后端 未结 5 1681
夕颜
夕颜 2020-12-08 04:01

When I wanted to get Android source code, I knew that I have to use \"repo\". So what is repo? Why do they use repo and not just use GIT?, and is there a GUI for repo that e

5条回答
  •  -上瘾入骨i
    2020-12-08 04:48

    Go to:

    http://source.android.com/source/git-repo.html

    and you can download the repo script. It is a Python script that uses the git command to do distributed source code revision.

    After you have executed repo sync, do a ps -auwf to see the processes:

    For mine I saw:

    \_ python -E /sde3/root/download/android/android/.repo/repo/main.py --rep 
          \_ git fetch korg
                \_ git fetch korg
                \_ git index-pack --stdin -v --fix-thin --keep=fetch-pack 5227 on
    

    Yes, repo sync breaks often. But it is robust, just restart the command and it will resuming syncing again - those that have been updated will not be re-applied, so it will skip over them and continue with the rest.

提交回复
热议问题