Ignore .classpath and .project from Git

If the .project and .classpath are already committed, then they need to be removed from the index (but not the disk) git rm –cached .project git rm –cached .classpath Then the .gitignore would work (and that file can be added and shared through clones). For instance, this gitignore.io/api/eclipse file will then work, which does include: … Read more

How do I ignore all files in a folder with a Git repository in Sourcetree?

For Sourcetree users: If you want to ignore a specific folder, just select a file from this folder, right-click on it and do “Ignore…”. You will have a pop-up menu where you can ignore “Ignore everything beneath: <YOUR UNWANTED FOLDER>” If you have the “Ignore” option greyed out, you have to select the “Stop Tracking” … Read more

git doesn’t ignore 2 specifically named files

What you want to is to ignore changes on tracked files. This cannot achieved (as Charles Bailey says) correctly, neither with .gitignore nor with .git/info/exclude. You’ll need to use git update-index: git update-index –assume-unchanged build/conf/a.conf git update-index –assume-unchanged build/conf/b.conf will achieve what you want: the files are always assumed unchanged. If you want to track … Read more

Gitignore won’t ignore .vs folder for Visual Studio 2015 RC on Windows7/8

Follow the steps below, the issue will be solved. Step 1: Add following content to the file .gitignore. ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user *.userosscache *.sln.docstates # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)