Git ignore locally deleted folder

git ls-files –deleted -z | git update-index –assume-unchanged -z –stdin Note that because this is an index-based operation, you cannot set directories to be ignored – only individual files. If upstream ever adds a file inside those directories, you will have to repeat the fix-up.

Mercurial ignore file

.hgignore does not need to be created before init It the config file will be used by others, you’d better commit the .hgignore so others dont have to create it, but this is not needed for mercurial to ignore your local files (see example) Yes .hgignore has to be in the root directory Simple example. … Read more

What should be contained in a global source code control ignore pattern for Visual Studio 2010?

For C++ projects, you should be fine ignoring the following files: *.sdf and *.opensdf (temporary file opened only while .vcxproj/.sln is loaded to Visual Studio IDE) *.suo *.vcxproj.user ipch folder, if your project uses Pre-compiled Headers (PCH); it is a storage for Intellisense compiler which can now utilise PCH for better performance For C# projects, … Read more

Which files in .idea folder should be tracked by Git?

Jetbrains has some official guidance on which files should not be checked in, and which files should probably not be checked in, depending on your usage. According to that page, you should check in all files in the .idea directory except: workspace.xml tasks.xml And probably also: the xml files in the dictionary subdirectory While the … Read more