小编Jon*_*han的帖子

从 Git 中删除敏感数据。“致命:模棱两可的论点‘rm’”

我正在尝试运行这个命令:

git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch filename.js' --prune-empty --tag-name-filter cat -- --all
Run Code Online (Sandbox Code Playgroud)

但我不断收到此错误:

fatal: ambiguous argument 'rm': unknown revision or path not in the working tree
.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Run Code Online (Sandbox Code Playgroud)

git

3
推荐指数
1
解决办法
1612
查看次数

标签 统计

git ×1