root@ubuntu:~/kata# git clone https://github.com/intel/nemu.git Cloning into ‘nemu‘... remote: Enumerating objects: 424468, done. remote: Total 424468 (delta 0), reused 0 (delta 0), pack-reused 424468 Receiving objects: 100% (424468/424468), 138.14 MiB | 8.43 MiB/s, done. Resolving deltas: 100% (347469/347469), done. Checking out files: 100% (6842/6842), done. root@ubuntu:~/kata# cd nemu root@ubuntu:~/kata/nemu# git fetch origin root@ubuntu:~/kata/nemu# git checkout origin/experiment/automatic-removal Note: checking out ‘origin/experiment/automatic-removal‘. You are in ‘detached HEAD‘ state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name> HEAD is now at 0862b5b282 Automatic code removal root@ubuntu:~/kata/nemu# SRCDIR=$PWD root@ubuntu:~/kata/nemu# ./tools/build_aarch64.sh
原文:https://www.cnblogs.com/dream397/p/13751793.html