每次我 git push 时,我都会收到一条神秘的错误消息。奇怪的是,推动似乎顺利通过!这是完整的输出:
$ git push
/data/github/shell/bin/gh-environment: line 84: /etc/ghrc-secrets: Permission denied
/data/github/shell/bin/gh-environment: line 84: /etc/ghrc-secrets: Permission denied
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 1.02 KiB, done.
Total 8 (delta 0), reused 0 (delta 0)
To git@github.com:REDACTED/REDACTED.git
0f6db16..0321871 master -> master
错误消息每次都突然发生,在我在 github 上的每个 repos 中。然而我在网上查了一下,我的所有更改都被成功推送了。
连接时似乎有些奇怪,而不是实际推送数据时。因为当我没有什么要推送的时候,错误仍然存在,而且总是两次:
$ git push
/data/github/shell/bin/gh-environment: line 84: /etc/ghrc-secrets: Permission denied
/data/github/shell/bin/gh-environment: line 84: /etc/ghrc-secrets: Permission denied
Everything up-to-date
这是怎么回事?