在我的 Git 存储库中,重音文件为 éíóúàèìòùãõ_800x600.jpg,但在进行克隆后,我无法拉取,因为文件显示为已修改:
$git clone [...]
done
$git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# "a\314\201e\314\201i\314\201o\314\201u\314\201a\314\200e\314\200i\314\200o\314\200u\314\200a\314\203o\314\203_800x600.jpg"
尽管如此,我还是无法添加、删除、重置或存储文件。
我试过了:
$git add a\314\201e\314\201i\314\201o\314\201u\314\201a\314\200e\314\200i\314\200o\314\200u\314\200a\314\203o\314\203_800x600.jpg
fatal: pathspec 'a314201e314201i314201o314201u314201a314200e314200i314200o314200u314200a314203o314203_800x600.jpg' did not match any files
$git stash
No local changes to save
$git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# "a\314\201e\314\201i\314\201o\314\201u\314\201a\314\200e\314\200i\314\200o\314\200u\314\200a\314\203o\314\203_800x600.jpg"
如何处理转换为 unicode 的重音文件?