0

I had earlier pulled a branch from master and while working I mistakenly changed the file and directory permissions. Will those changes be reflected in master while merging even though the directory permission changes are not being showed in "git diff"?

edit: I'm working on a Linux machine.

1 Answers1

0

The only file permissions Git does track is whether something is executable or not. If you haven’t made a change on the executable bit, then there will be no permission change in your commit and others will not be affected by it.

The file permissions will stay active within your local working directory though, so you should be aware of that. It is possible that certain actions (e.g. checking out a different branch) may or may not overwrite the file permissions on those files individually again in the check-out process.

poke
  • 369,085
  • 72
  • 557
  • 602