I have added to my .gitignore
file:
dwsync.xml
However, this doesn't ignore other dwsync.xml
files in other directories, it only ignores the root directory. How can I solve this?
You say that:
When changes are made to
dwsync.xml
in other folders, the changes come up on 'Uncommitted Changes'.
This means that the dwsync.xml
files actually are part of your repository. In this case .gitignore
has no effect. The files mentioned in .gitignore
only apply to files that are not in the repository, and that you don't want shown as "untracked files".
If you have .gitignore file in your child directories the recursive propagation will not work on that directories. You must add file name/mask explicitly or remove .gitignore from child directories.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.