-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Merged by Bors] - Add note about global .gitignore
to CONTRIBUTING.md
— Instead of ignoring .DS_Store
files created by macOS Finder
#6499
Conversation
you should add that to your global gitignore, not to each project you'll contribute to |
I agree with Francois here :) |
I disagree. Why should Bevy define a .gitignore at all then? We can leave this out if that's what people prefer but I don't see the harm in adding it haha |
for files to ignore that are specific to this project and that you don't want to ignore on all projects, like a
There's no harm, it's just not the place to support every configuration people may have |
TL;DR: I approve this addition. Even though I tend to agree with @mockersf within a « trusted team », in an open source project I think it makes sense to add it:
Cons:
In my opinion the suggestive advantage balance is on the pros’ side 👍. Current .gitignore also contains .vscode and .idea ; which are not machine-wide files, but independent developer experience files… in my opinion, if we want to be purist about our gitignore, we would want to set those ignores locally rather than from our project ( https://stackoverflow.com/questions/1753070/how-do-i-configure-git-to-ignore-some-files-locally ) But because a lot of people are using vscode or itellij/clion, it’s worth it to add them 👍 I would argue .DSStore is comparable to that :) |
You're right, we should remove them 🥷 GitHub as a reference repo for .gitignore files. macOS specific files and editors are in the Global folder 😉 https://github.com/github/gitignore/tree/main/Global If that's really an issue for people, I would prefer to add doc to the |
I think this would be a nice compromise if we decide to not include this change. I didn't even know you could ignore files in git globally 😅 |
.gitignore
to CONTRIBUTING.md
— Instead of ignoring .DS_Store
files created by macOS Finder
Pivoted the PR purpose 😅 It now adds a I believe that's a little less controversial, but if y'all want I can un-pivot the purpose of the PR, I don't have a strong preference either way now. |
bors r+ |
…ignoring `.DS_Store` files created by macOS Finder (#6499) # Objective Finder in macOS creates hidden `.DS_Store` files containing metadata (for icon positioning, view mode, etc) whenever you browse a directory. There's no point in committing these to git, and they're a common git + macOS nuisance. ## Solution - ~~This PR adds `.DS_Store` files to `.gitignore`, improving the developer experience on macOS.~~ - This PR adds a note to the `CONTRIBUTING.md` file teaching how to use global git ignore.
Build failed: |
Looks like this failed to build due to an issue in CI? How can we re-run it?
|
bors retry |
…ignoring `.DS_Store` files created by macOS Finder (#6499) # Objective Finder in macOS creates hidden `.DS_Store` files containing metadata (for icon positioning, view mode, etc) whenever you browse a directory. There's no point in committing these to git, and they're a common git + macOS nuisance. ## Solution - ~~This PR adds `.DS_Store` files to `.gitignore`, improving the developer experience on macOS.~~ - This PR adds a note to the `CONTRIBUTING.md` file teaching how to use global git ignore.
.gitignore
to CONTRIBUTING.md
— Instead of ignoring .DS_Store
files created by macOS Finder.gitignore
to CONTRIBUTING.md
— Instead of ignoring .DS_Store
files created by macOS Finder
…ignoring `.DS_Store` files created by macOS Finder (bevyengine#6499) # Objective Finder in macOS creates hidden `.DS_Store` files containing metadata (for icon positioning, view mode, etc) whenever you browse a directory. There's no point in committing these to git, and they're a common git + macOS nuisance. ## Solution - ~~This PR adds `.DS_Store` files to `.gitignore`, improving the developer experience on macOS.~~ - This PR adds a note to the `CONTRIBUTING.md` file teaching how to use global git ignore.
…ignoring `.DS_Store` files created by macOS Finder (bevyengine#6499) # Objective Finder in macOS creates hidden `.DS_Store` files containing metadata (for icon positioning, view mode, etc) whenever you browse a directory. There's no point in committing these to git, and they're a common git + macOS nuisance. ## Solution - ~~This PR adds `.DS_Store` files to `.gitignore`, improving the developer experience on macOS.~~ - This PR adds a note to the `CONTRIBUTING.md` file teaching how to use global git ignore.
Objective
Finder in macOS creates hidden
.DS_Store
files containing metadata (for icon positioning, view mode, etc) whenever you browse a directory. There's no point in committing these to git, and they're a common git + macOS nuisance.Solution
This PR adds.DS_Store
files to.gitignore
, improving the developer experience on macOS.CONTRIBUTING.md
file teaching how to use global git ignore.