Fix to Rojo + git non-code changes syncing across all branches?

I’m trying to learn using the whole Rojo system and Vscode, and I currently have a studio project set up utilizing Git and Rojo (Vscode), when switching branches and making code changes across branches, these changes do not seem to carry from branch to branch.

However, when, for example, I add a part to the workspace on one branch, and checkout another, the change (as in adding the part) seems to be present on every branch as well (this also happens when I save my workspace as an rbxm(x) and save it to one branch, the file is then saved to all of the branches).

My question would be then, how would I be able to have changes to the rbxm(x) project of the game itself only save to the branch the change was made on?

Thanks in advance to anyone that reaches out!

I felt that this description is a bit vague for anyone that’s going to read this.

Essentially, git functions as normal when writing files on different branches. For example, when I add a line of code on one luau file on say, a testing branch, that line of code won’t appear on the main branch.

On the contrary, when importing/deleting non-code assets, such as rbxm(x) files, such as when I, say, add the rbxm(x) file for the workspace, it appears not only on the testing branch where it was added, but also on the main branch aswell, vice versa for deletion.

I recently came over from Unity after learning the engine, where the system allows for branching with gameobjects, I don’t know if this case would be necessary or even best practice for Roblox projects, so I would be happy to hear from anyone who has had experience with Git and Rojo.