I have a .gitignore file in the root of a git repository on my Windows machine and I'd like to ignore a specific file located in a subdirectory (several levels down from the root). Is this how I specify the file I want to ignore in .gitignore?
path/to/file/myignoredfile.txt
答案 0 :(得分:0)
/path/to/file/myignoredfile.txt
确切地说,是的。请注意最初的斜线。这意味着“从这个.gitignore所在的目录开始遍历”。