Git is better than Subversion in that it can do “self-ignoring ignores”, that is, temporary ignores. For example, creating a git-repo/committed-xml-dir/.gitignore:
This will cause all XML files in that directory to then be ignored, and if you do a git status the .gitignore won't show up either. This allows files to be temporarily ignored locally without having to commit anything. In contrast, Subversion ignores are handled via a the svn:ignore property, and you can't do svn propset svn:ignore "*.xml" ." and then ignore the ignore viasvn:ignore "." .`—it doesn't work.
Git is better than Subversion in that it can do “self-ignoring ignores”, that is, temporary ignores. For example, creating a
git-repo/committed-xml-dir/.gitignore:This will cause all XML files in that directory to then be ignored, and if you do a
git statusthe.gitignorewon't show up either. This allows files to be temporarily ignored locally without having to commit anything. In contrast, Subversion ignores are handled via a thesvn:ignoreproperty, and you can't dosvn propset svn:ignore "*.xml" ." and then ignore the ignore viasvn:ignore "." .`—it doesn't work.