How to clone openwrt 23.05-rc2 branch?

I tried git clone -b openwrt-23.05-rc2 https://git.archive.openwrt.org/openwrt.git but git can't find this branch.

git clone https://git.archive.openwrt.org/openwrt.git

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 https://git.archive.openwrt.org/openwrt.git

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: