jobs@jobs-i5nb MINGW64 /d/myworkspace $ git clone https://github.com/eclipse-threadx/threadx.git Cloning into 'threadx'... remote: Enumerating objects: 25416, done. remote: Counting objects: 100% (3847/3847), done. remote: Compressing objects: 100% (833/833), done. remote: Total 25416 (delta 3025), reused 3515 (delta 2912), pack-reused 21569 Receiving objects: 100% (25416/25416), 18.30 MiB | 9.00 MiB/s, done. Resolving deltas: 100% (18137/18137), done. Checking out files: 100% (8217/8217), done. jobs@jobs-i5nb MINGW64 /d/myworkspace $ cd threadx/ jobs@jobs-i5nb MINGW64 /d/myworkspace/threadx (master) $ git branch * master
jobs@jobs-i5nb MINGW64 /d/myworkspace/threadx (master) $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/JideshMSFT-fix-cortex_m4-example_build remotes/origin/bo-ms/add_revision_history remotes/origin/bo-ms/copyright remotes/origin/bo-ms/update_port remotes/origin/bo-ms/update_version_id remotes/origin/freertos-readme remotes/origin/liydu-patch-1 remotes/origin/master remotes/origin/ports_from_st_patch_87f130e remotes/origin/sclarson/update_rx_modules remotes/origin/tizho/update_version remotes/origin/v6.0 remotes/origin/wickste-patch-1 remotes/origin/wickste-patch-2 remotes/origin/wickste-patch-3 remotes/origin/wickste-patch-4 remotes/origin/wickste-patch-5 remotes/origin/wickste-patch-6 remotes/origin/wickste-patch-7 remotes/origin/xiucai/fix_comp_layer remotes/origin/xiucai/fix_xtensa_port
这么多的远程分支,而我要学习的代码又保存在其它分支,那接下来我要怎么操作呢?
git fetch origin
git checkout -b branch-name origin/branch-name