How to set file permission bits with Perforce

前端 未结 2 1810
無奈伤痛
無奈伤痛 2021-02-04 07:37

I have a few files that I noticed have the Other bits turned off (e.g., permissions set to 550 when checked-in to Perforce). I want them to be readable and/or executable by eve

2条回答
  •  轮回少年
    2021-02-04 08:12

    There are two ways to set file permissions in Perforce:

    1. Set the file permissions before you p4 add the file to Perforce.
    2. Edit the file with the permissions you would like to have i.e:
    p4 edit -t text+x some_bash_script.sh
    

    Then Perforce will open the file for edit using the filetype you requested. This document has more information on Perforce filetype options.

提交回复
热议问题