If I close a repository, Sourcetree asks me to commit all the files back to the repository. I've made no changes, so why it is asking me to commit the files?
Sourcetree is just a wrapper for Git. There is a good chance that your repository is missing (or not configured) ".gitignore" file. The most common occurrence that I see is IDE specific files and folders like [.vs, .code, .ideal] are not include in the ".gitignore". So if you just open the project to look at code, AND made no changes yourself, your IDE could still make changes to setting or config files in the repo. Therefore Git and Sourcetree will see a difference and will ask you to commit.
There are some complications like if the ".gitconfig" is updated then you will have to update the cached (tracked) files so that Git and stop tracking it.
I would need more specifics to be able to help more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.