简体   繁体   中英

Unity, Git: local ignore file not ignoring anything

I have a .gitignore file copied from here in the root of my repository, but none of the specified files or directories are being ignored. I have reverted back to right after the initial commit, added the .gitignore file, created a new unity project, and immediately had 90 added files mostly in the /Library directory. All of the files are new, so the problem is not that it is not removing newly-ignored files. Am I missing some step where I point git to the ignore file? In the past I have not had to deal with anything like that. Is the local ignore file overridden by a global one?

Becuase of this [core] excludesfile = ~/.gitignore

you can put the gitignore in other folders, as the same time, you must config the config file .git/config

All your config is in it.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM