git - 删除一个看起来像 "\357\275\236"的文件

标签 git

当我这样做 混帐状态

# On branch inline
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   "\357\275\236"
# nothing added to commit but untracked files present (use "git add" to track)

但是,当我执行 ls -al 时,我没有看到任何类似 \357\275\236 的东西

最佳答案

您的文件名中可能包含 UTF-8 字符。运行

git config core.quotepath false

更改 git 的行为并向您显示操作系统可能向您显示的文件名。

这是一个workaround to deal with Mac OS X HFS+ UTF-8 encoded files and git !这个问题的答案也有很好的解释。

关于git - 删除一个看起来像 "\357\275\236"的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6737165/

相关文章:

git update-index assume-unchanged 错误 : assume-unchanged: does not exist and --remove not passed

Git checkout 第一次提交

git - 在子目录位于主 repo 与子模块化的分支之间切换

java - 使用 JGIT,如何检索添加/删除行的行号

linux - 从 public_html_source 到 public_html 的符号链接(symbolic link)

git - 显示自 master 原始分支点以来 git 分支中的所有提交

Git 忽略并改变过去

ios - "git: error: Failed to determine realpath of '/Applications/.../iPhoneOS13.0.sdk' (errno=没有这样的文件或目录)\n

ruby-on-rails - 未 checkout ... bundle install 不修复帮助!

windows - 如何为 Git-Bash 设置 16 种终端颜色?