I am using Sourcetree as my Git client for version control, and I am coming across an issue where any project I am working on is ignoring one specific file (which happens to be the main.css file).
I have checked the repository specific .gitignore file and it is empty, but the file still does not show up in my file status on Sourcetree.
How do I view the files which are being ignored globally on all projects in order to remove this file as I am currently unable to commit it to the repos and is very frustrating when more than one person is working on the same project.
In order to exclude a file getting ignored, add this to the project's .gitignore
,
!main.css
This will exclude the file from getting ignored in the project.
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.