这个文件一直在 git 里是 tracked 状态,但按项目约定二进制不入库, 每次提交都得小心翼翼地绕开它(`git add -u` 一不小心就带上了, 以前还为此回退过一次提交)。直接解除跟踪,并补上忽略规则, 以后就不会再被误提交。 - `git rm --cached acfunlive-danmu-linux`:只从索引里移除, 磁盘上的可执行文件原样保留,构建产物不受影响 - .gitignore 补 `/acfunlive-danmu-linux`:Windows 那两个二进制是 *.exe 盖住的,Linux 的没有扩展名,落不到任何现有规则里 注意:这只影响本仓库的跟踪状态,历史里的旧版本仍在, 需要的话得另外用 filter-repo 清理。
32 lines
451 B
Plaintext
32 lines
451 B
Plaintext
acfunlive
|
|
*.ico
|
|
*.json
|
|
*.mp4
|
|
*.flv
|
|
*.ass
|
|
*.7z
|
|
/webui
|
|
/bin
|
|
/merged
|
|
/record
|
|
|
|
# Binaries for programs and plugins
|
|
*.exe
|
|
*.exe~
|
|
*.dll
|
|
*.so
|
|
*.dylib
|
|
# Linux 二进制没有扩展名,*.exe 那条盖不住,得单独写
|
|
/acfunlive-danmu-linux
|
|
|
|
# Test binary, built with `go test -c`
|
|
*.test
|
|
|
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
*.out
|
|
|
|
# Dependency directories (remove the comment below to include it)
|
|
# vendor/
|
|
|
|
.workbuddy
|