简体   繁体   中英

Git is ignoring yml file

I am facing with a strange issue. I have private git repo. In that if I add a new .yml file then git is ignoring that file but If I add any other file then it's recognising it.

There is no .gitignore file in the repo.

One of my colleague tried to add .yml file in that repo and he is able to do it.

Therefore issue is specific to my system. I could not think anything other than a .gitignore file will do it. ( I even deleted the repo and clone it again but no luck)

Can someone please share some guidance about this bizzard issue. Where to look at it / what to look at etc?

Use

git check-ignore -v file.yml

to find out if there is an ignore pattern that ignores the file and from what file the pattern comes. It could be .git/info/exclude or global .gitignore.

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