Move up to the git repo root if possible