Should I add the Visual Studio 2015 .vs folder to source control?

No, you should not add it to source control. The purpose of this folder is to move machine- and user-specific files to a central location. The explanation on the Visual Studio User Voice issue explains it well: So far, we have moved the .SUO file and the VB/C# compiler IntelliSense database files to the new … Read more

How to remove files that are listed in the .gitignore but still on the repository?

You can remove them from the repository manually: git rm –cached file1 file2 dir/file3 Or, if you have a lot of files: git rm –cached `git ls-files -i -c –exclude-from=.gitignore` But this doesn’t seem to work in Git Bash on Windows. It produces an error message. The following works better: git ls-files -i -c –exclude-from=.gitignore … Read more

Git command to show which specific files are ignored by .gitignore

Notes: xiaobai’s answer is simpler (git1.7.6+): git status –ignored (as detailed in “Is there a way to tell git-status to ignore the effects of .gitignore files?”) MattDiPasquale’s answer (to be upvoted) git clean -ndX works on older gits, displaying a preview of what ignored files could be removed (without removing anything) Also interesting (mentioned in … Read more

How do I configure git to ignore some files locally?

From the relevant Git documentation: Patterns which are specific to a particular repository but which do not need to be shared with other related repositories (e.g., auxiliary files that live inside the repository but are specific to one user’s workflow) should go into the $GIT_DIR/info/exclude file. The .git/info/exclude file has the same format as any … Read more

How do I make Git ignore file mode (chmod) changes?

Try: git config core.fileMode false From git-config(1): core.fileMode Tells Git if the executable bit of files in the working tree is to be honored. Some filesystems lose the executable bit when a file that is marked as executable is checked out, or checks out a non-executable file with executable bit on. git-clone(1) or git-init(1) probe … Read more

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