I have branch A that keep track of remote branch B.
When I change current active branch to C, and then rename A to A1, I sometimes get this error (sometimes not)
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks branch -m Working_20230203 Working_20230215
error: could not write config file .git/config: Permission denied
fatal: Branch is renamed, but update of config-file failed
Completed with errors, see above.
After that sourcetree cannot display A1 to active, I must restart sourcetree and when I active A1 again and pull, it lose track of remote branch B
How to fix this?