PX4使用
git submodule update --init --recursive
报错
fatal: remote error: upload-pack: not our ref
解决办法参考:https://stackoverflow.com/questions/61163082/why-does-git-submodule-update-fail-with-fatal-remote-error-upload-pack-not-o
感觉就是清空一些环境
git reset --hard origin
git clean -n
git stash
git submodule update --init --recursive
git reset --hard origin
似乎会自己切到主分支,如果是自己的分支要改成自己的分支名字。
其实,最后,好像也没有解决问题。但是这个报错好像也不影响运行。有强迫症再处理吧。