在設置.git/info/attributes
文件中的屬性時出現以下錯誤。文件「openssl」]不是有效的屬性名稱:.git/info/attributes:5
$ git add --dry-run .
"openssl"] is not a valid attribute name: .git/info/attributes:5
"openssl"] is not a valid attribute name: .git/info/attributes:8
add '.gitignore'
add 'README.md'
內容:
* filter=openssl diff=openssl
[merge]
renormalize=true
[filter "openssl"]
smudge=~/.gitencrypt/smudge_filter_openssl
clean=~/.gitencrypt/clear_filter_openssl
[diff "openssl"]
textconv=~/.gitencrpt/diff_filter_openssl
更新時間:
$ git version
git version 1.8.3.2
'[merge]','[filter ...]'和'[diff ...]'東西不會進入你的'。git/info/attributes'文件。它在'.git/config'或'$ {HOME} /。gitconfig'中。使用'git help gitattributes'和'git help config'來閱讀這兩種文件的描述。 – twalberg
@twalberg:謝謝......你是對的 – twid