0

I have a file foo with permissions 0644 in a repo, already pushed and I would like to change it to 0600.

When I change it locally, git doesn't seem to detect this change. Why?

Thanks

EDIT: I have filemode = true in my git config

David Bensoussan
  • 2,887
  • 2
  • 38
  • 55
  • Check https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes – Akshay Gohil May 08 '18 at 10:32
  • This doesn't help. I'm not asking how to solve it as I know git ignores it, I ask why – David Bensoussan May 08 '18 at 10:35
  • It's a designed behaviour, in order to make life easier. – ElpieKay May 08 '18 at 11:28
  • 1
    Possible duplicate of [Git is changing my file's permissions when I push to server](https://stackoverflow.com/questions/11230171/git-is-changing-my-files-permissions-when-i-push-to-server) – David Bensoussan May 08 '18 at 11:29
  • Thanks, I found my answer here: https://stackoverflow.com/questions/11230171/git-is-changing-my-files-permissions-when-i-push-to-server I voted to close the question as duplicate to it – David Bensoussan May 08 '18 at 11:29

0 Answers0