How to clone openwrt 23.05-rc2 branch?

I tried git clone -b openwrt-23.05-rc2 but git can't find this branch.

git clone

Then see which branches are out there

git branch -a

Then checkout one:

git checkout branchname
1 Like

Branch is just "openwrt-23.05".
rc2 is just a tag

git clone -b openwrt-23.05

Alternatively, you could checkout the rc2 tag.
(but I do not recommend it. You are better off by checking out the current 23.05 HEAD)
Release tag checkout advice: