How to get a git clone --branch into an existing repository?

So I want to build blender fork but it fails to build on Visual Studio 2022. There is already a patch and a open PR that fixes the issue.

I have already git cloned the repository and I would want to only get the patch into my local repository. So I can build from that.

9 points · 1 comments · view on lemmy.world

1 Comments

ludrol@bookwormstory.social · 5 pts · 2y

So the correct command is
git fetch https://github.com/illusion0001/goo-engine.git patch-4:patch-4
git checkout goo-engine-main
and git merge patch-4