How to fix fatal: Unable to read current working directory: Permission denied (snap confinement) in Git | DevErrors