不再跟踪 Linux 二进制 acfunlive-danmu-linux
这个文件一直在 git 里是 tracked 状态,但按项目约定二进制不入库, 每次提交都得小心翼翼地绕开它(`git add -u` 一不小心就带上了, 以前还为此回退过一次提交)。直接解除跟踪,并补上忽略规则, 以后就不会再被误提交。 - `git rm --cached acfunlive-danmu-linux`:只从索引里移除, 磁盘上的可执行文件原样保留,构建产物不受影响 - .gitignore 补 `/acfunlive-danmu-linux`:Windows 那两个二进制是 *.exe 盖住的,Linux 的没有扩展名,落不到任何现有规则里 注意:这只影响本仓库的跟踪状态,历史里的旧版本仍在, 需要的话得另外用 filter-repo 清理。
This commit is contained in:
@@ -16,6 +16,8 @@ acfunlive
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
# Linux 二进制没有扩展名,*.exe 那条盖不住,得单独写
|
||||||
|
/acfunlive-danmu-linux
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user