How to checkout (and build) VCMI branches

Hi all and thanks for reincarnating this great game!

I’d like to test out the Nullkiller AI, but I struggle to checkout the nullkiller-ai branch. As I understand it, the branch is called nullkiller-ai, I can see it here:
https:// NOLINK github NOLINK .com/vcmi/vcmi/tree/nullkiller-ai

(I put in NOLINK in the forum post, otherwise I can’t post due to too many links)

I try to check it out locally, but it does not work:
git checkout nullkiller-ai
error: pathspec ‘nullkiller-ai’ did not match any file(s) known to git

git checkout origin/nullkiller-ai
error: pathspec ‘origin/nullkiller-ai’ did not match any file(s) known to git

I believe I have the correct origin:
git remote show origin

  • remote origin
    Fetch URL: https:// NOLINK github NOLINK .com/vcmi/vcmi.git
    Push URL: https:// NOLINK github NOLINK .com/vcmi/vcmi.git
    HEAD branch: develop
    Remote branch:
    develop tracked
    Local branch configured for ‘git pull’:
    develop merges with remote develop
    Local ref configured for ‘git push’:
    develop pushes to develop (up to date)

I was told by Stack Overflow that I should be able to list remote branches using:
git branch -r
origin/HEAD -> origin/develop
origin/develop

(I’m on Linux, that’s why I just can’t download one of the Windows builds)

It is available no in daily builds using Launcher settings

Regarding your original question I expect you need git fetch first. And afterwards git checkout branch-name. No additional remotes are required