I have bunch of .class and .wsdl files which simple are not ignored by SourceTree - ignore command in the drop down menu is not active
My .gitignore file looks like
# # Default excludes # # Binaries *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip *.war *.ear *.sar *.class # Maven target/ # IntelliJ project files *.iml *.iws *.ipr .idea/ # Unknown **/jaxws/* **/wsdl/*
Any clue what is going on?
OK, so I have done
git ls-files -ci --exclude-standard
related files were on the list so I have did
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached
and those "yellow" icon files were moved to Staged Files window instead removing them to be tracked.
Any clue on that?
It looks like the icon is yellow. That means the file has already been committed, which is why you can't ignore it. Untracked files have a purple icon with a question mark.
This might help: https://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.