Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New topic: self-ignoring ignores #10

Open
westonruter opened this issue Feb 16, 2011 · 1 comment
Open

New topic: self-ignoring ignores #10

westonruter opened this issue Feb 16, 2011 · 1 comment

Comments

@westonruter
Copy link

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:

/.gitignore
/*.xml

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.

@MatrixFrog
Copy link

I would say git is better just because of the whole svn:ignore thing in general. I can't see what is ignored without using svn itself. If I want to ignore something, but I don't want to force everyone else to ignore it, I have to change my svn:ignore settings and then every time I commit, I need to exclude that particular property. It's just so much more of pain vs. cat .gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants