Does Drupal modify folder permissions during runtime?
Yes drupal modify default folder permission during runtime, and this folder is what exactly you should add it to your .gitignore because it contains user uploaded files which have not value to keeping in repository.