3

In Git, all i found out to change the file/folder permissions is to 755 (with: +x) only. Which is:

$ git update-index --chmod=+x docroot/myfolder

How do i then change it to:

  • 775
  • 777

etc, as i like?

夏期劇場
  • 17,821
  • 44
  • 135
  • 217

1 Answers1

0

Perhaps I am a little late, but:

As far as I know, git stores only "executable" or "not executable". If a file is marked as executable, it will be checked out with permissions something like 777. If you execute umask 0002 before checkout, you get file permissions 775.

Before all of this, you might want to execute umask without parameters. It will return the current settings, so you are able to restore them later.

This might be an answer to your question. But I don't know, if I would recommend these commands ;)

Shear Plane
  • 124
  • 8