Hello
i have problem that i have one branch(calc branch) with submodules and i have merged this branch with Release Branch and the project goes on but later i decided to switch back to that branch(calc branch) the source tree doesn't allow me to do that saying there is untracked file even i'm sure i have committed everything but i noticed the .gitmodules file is different in both Branch what should i do to solve this problem and able to switch to the other branch.
Hi @Mahmoud
Welcome to the Atlassian community!
Switching branches fails because Git blocks modifications when the target branch contains different submodule commit mappings. Cleaning untracked build files using git submodule foreach --recursive git clean -xfd and updating pointers via git submodule update --init --recursive immediately forces your submodules to align with your active branch and clears the checkout error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.