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?
Some time has passed since you asked this question, but looking at the color of the icon on the left of your files, it looks like you have already tracked those files, therefore you can't ignore them.
First you need to choose the option Stop Tracking bellow Ignore and after that you will be able to select those files and ignore them.
Related
My VSCode is showing much more files in "Changes" then the actual files that are changed.
Most of them are some static files, scripts... And when I click to see what actually changed, there's no difference. How can I turn off showing such files?
You can add a '.gitignore' file which have contents like :
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db
I have been using vscode and PlatformIO for a little while now.
I would like my .gitignore file to be:
.pioenvs
.piolibdeps
.vscode/
but for some reason the IDE insists on adding the following every time I start up:
.vscode/c_cpp_properties.json
.vscode/launch.json
I am already ignoring the entire .vscode directory, why is it valuable to ignore individual files within that directory?
Symptoms: Large C++ project; I have an extraneous .cpp file in a common directory, listed in a logical subfolder, that I want to remove from the project but not delete on the disk. I right-click on the filename in the projects directory, and select Remove From Project in the popup menu. The name of the file disappears from the Project listing.
However, the .o and .o.d files are not erased from disk; neither is the file listing removed from the project's various netbeans config and Makefiles, etc.
Round 1: Hammer-button recompile. The old .o is still included, and compile fails with its unmet dependencies.
Round 2: Broom-button erase all .o's and recompile. It's still included.
Same effect if I Remove a folder.
Again: File does not appear in the Project table of contents, but is still quietly bound in, causing bloat and unneeded dependencies.
I'm having to go in and update each config and Makefile etc. manually. Is this a known bug? Any workarounds?
I can't see my project's .gitignore files within my netbeans program.
Is there a way to make them appear within the list of files? I could not find a way.
Open the NetBeans Options
Click on the 'Files' tab
Under 'Ignored Files Pattern', the default is:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$
This means that, by default, NetBeans ignores all files beginning with '.' except for .htaccess
You can update this regex to the following to also exclude .gitignore:
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(htaccess|gitignore)$).*$
Click OK, and NetBeans will immediately begin displaying your .gitignore files.
Is it possible to create Eclipse-style folders (Project Folder, Package and so on) via the Terminal?
I once renamed an Eclipse package like this: mv oldname newname, and I noticed that after doing so, Eclipse no longer considered the folder a Package.
This possibly means that it is a matter of metadata, but I have so far been unsuccessful in locating the files containing the relevant information.
Eclipse does not provide anything to do this and it is not really possible manually.
For a project some information is stored in the .project file in the project folder. Depending on the type of project there may also be a .classpath file and there will also be data stored in the .metadata folder in the workspace and also in a .settings folder in the project.
All the file and folder names starting with . are considered to be hidden on Linux, Unix and Mac systems and are not shown by default. Use the -a flag of ls to see them.