Odd behavior when Git repo is in C:\Program Files

We have a Git repo in C:\Program Files\Some-DB\Some-DB-Queries. When Git (or SourceTree) is run as Admin, everything works as expected. However, as non-Admin, after pulling into a local repo, Git sees those changes as uncommitted local changes.

Does Git have to be run as Admin in Windows? If not, is there a way to configure security such that Git has the proper permissions for a repo living in Program Files?

  • Access denied to file on windows 7 for Administrator account
  • Add a submodule which can't be removed from the index
  • Can I just copy .git to another directory?
  • Python Fabric error when executing git archive command
  • Can I use a git repo for a subfolder in a mercurial repo?
  • Raspberry Pi and GitLab
  • How to resolve git error: “Updates were rejected because the tip of your current branch is behind”
  • Git Baby is a git and github fan, let's start git clone.