2

Someone else asked the question How to restore the permissions of files and directories within git if they have been modified? which was answered by using a reverse patch.

Why doesn't git reset reset the permissions back to what they were?

steinybot
  • 5,491
  • 6
  • 37
  • 55
  • It does for me. Does it not on some platforms? – Ry- Mar 29 '19 at 00:57
  • If you’re wondering why the answer isn’t just `git reset --hard HEAD`, for example, it’s because of the “Without touching the content of the files” part – the asker seems to want to commit file content changes without committing accidental permission changes. – Ry- Mar 29 '19 at 01:00
  • It does not seem to work on Windows with NTFS. – steinybot Mar 29 '19 at 02:05

0 Answers0