当我输入
git branch -avv
它向我显示了所有分支的列表:本地和远程分支
git branch -avv
master 2fa4d6c [origin/master] RT92026 Modified 'update' for the STM32F429 Discovery to use 'image'. Removed 'eimage'.
remotes/origin/HEAD -> origin/master
remotes/origin/master 2fa4d6c RT92026 Modified 'update' for the STM32F429 Discovery to use 'image'. Removed 'eimage'.
remotes/origin/zpm 37aadc6 Change bootargs to use rootfs at mtdblock2
remotes/origin/zpm_16MB 1f82630 fixed error in macro concatenations with just hardcoded values
remotes/origin/zpm_dev 115d973 changed CONFIG_LPC178X_PLL0_PSEL to 1
remotes/origin/zpm_pulse cd2f813 changes for 16MB RAM
问题是 - 如果远程存储库不再可用并且我只有本地副本,我可以获得远程分支 remotes/origin/zpm_pulse 吗?(没有将分支设置为 origin/zpm_pulse)。
因此,当我创建一个本地分支 zpm_pulse 并将其绑定到上游分支时,它会说:
2fa4d6c [origin/zpm_pulse: behind 27] RT92026 Modified 'update' for the STM32F429 Discovery to use 'image'. Removed 'eimage'.
在那之后,我当然不能从原产地获取,因为原产地已经不复存在了。所以也许 git 将远程分支存储在里面的某个地方?