我看了这个帖子 如何在GIT中为文件添加chmod权限?
我的文件是这样的 https:/github.comPRATAP-KUMARfocalgdm3blobmasterfocalgdm3。
我在寻找的是
chmod +x
然后上传到github,一旦我从github下载文件就可以执行了...
chmod -x
一旦上述文件被上传到github而不下载... 我的意思是我应该有能力 chmod -x
和 +x
不下载...
对于第一点... 我试过 git update-index
命令,但得到的错误...
pratap@i7-6550U:~$ git update-index --chmod=+x focalgdm3fatal: not a git repository (or any of the parent directories): .gitpratap@i7-6550U:~$
寻找一步一步的程序...
请到 github.com/PRATAP-KUMAR/focalgdm3
目录,然后再执行 git update-index
命令。
$ cd github.com/PRATAP-KUMAR/focalgdm3
$ git update-index --chmod=+x focalgdm3