Hi,
- Close Unreal Editor and Visual Studio (or the code editor of your choice you use)
- Open sourcetree (if not opened yet)
- Discard your changes (if there are any pending) (Click Discard button on the top panel - confirm if asked)
- If there was something to discard : Reopen Unreal Editor and retry whether that fixed it for you
- If point 4 didnt help, then In sourcetree, navigate to the “Log/History tab” at the bottom of your screen (you will see list of all commits)
- Double-click on any commit that you think used to work.
- Verify that it helped.
If you are sure that it worked before but even after reverting to older commit it does not, then you might have broken some assets/portions of the project that are not tracked by your repository (listed in .gitignore file). To fix that, Try to delete the whole project and clone your repository locally again.
I’d encourage you to watch simple youtube videos for basic usage of Sourcetree and working with repositories (in this case, Git).
-Martin