Proper switching to new branch and keep the original branch

Hi,

I am learning to build custom image for my rpi4. I successfully built new image with all my needed packages and files based on 22.03.2. It is working fine so far. Now 22.03.2 is out and I will try to switch to new branch. I don't want to lose my 22.03.2 project(includes configuration/files/firmware images) just in case I need switch back to 22.03.2.

What is proper way to do it? and how to switch back to original branch?

If you used toolchain, rename your current toolchain directory and/or create a new directory when using git checkout.

If you used SDK, rename your current SDK directory and/or use the new directory when extracting SDK from archive.

If you used an Image Builder, rename your current IB directory and/or use the new directory when extracting IB from archive.

Thanks, I will use this approach.