➭ git add app/views/admin/tags/
The following paths are ignored by one of your .gitignore files:
app/views/admin/tags
Use -f if you really want to add them.
fatal: no files added
另一件需要尝试的事情是: 我有一个目录 B,它自己的 .git存储库嵌套在我的项目目录 A 下(但不作为子模块)。我对 B 做了一些修改,想把它变成一个真正的子模块。我认为 git A 自动忽略了 B,因为它包含自己的存储库(参见 没有子模块的嵌套 git 仓库?)。我重命名了 B 文件夹,并试图将它作为子模块再次克隆,这给我带来了误导性的“被忽略”。“ gitignore”错误消息。解决方案是从 B 中删除 .git。
$ git commit -a
fatal: Unable to create '..../.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Check you have permission to the folder. I have just run into this and it was because the folder was owned by the www-data user not the user I was logged in to the terminal as.
ignore = !"bash -c 'diff --unified=999999999 --color=always <(echo a; git check-ignore --verbose --non-matching --no-index . \"$@\") <(echo b; git check-ignore --verbose --non-matching . \"$@\")' - \"$@\" | tail -n+7; git hidden \"$@\" # Show ignore status of arguments. Files included by index are tagged with prepended '+'."
hidden = !"git ls-files -v -- \"$@\"| grep -E '^(S|[[:lower:]])' # S means update-index --skip-worktree, and lower first letter means --assume-unchanged."