GIT change file permission to 775 (not 755) how?

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?

Git Baby is a git and github fan, let's start git clone.