7 ms·
Just add it to `~/.gitignore` and be done with it. Yeah haven’t worried about this in 10 years.
by skyzyx 6y ago
Just add it to `~/.gitignore` and be done with it. Yeah haven’t worried about this in 10 years.
- manquer 6y agoThat approach works for one person or like minded dev teams perhaps. it fails in many teams, they do not care or a junior dev does not know. Many folks don't setup proper dotenv especially designers. Unless added to the project .gitignore file it is going to be added to the project sooner or later.
- hnarayanan 6y agoIt is easy to explain and help someone with this. :)
- manquer 6y agoIs it just me or nobody actually have problems working with non technical folks on git ? Getting a team of designers, content writers, marketing folks to use anything beyond their daily tools over a period of time is hard. I had the marketing team run a git managed, asset pipeline ,CI deployed Hugo static site via a CDN for three years, with great performance and high availability for three years, now we run hubspot. Once the initial team moved on, It was next to impossible to hire people willing to work on that stack , typically new guys will know Wordpress or hubspot etc, my TAs had frustrating time sourcing, I finally had to give up . Administrative Config in yaml/JSON files in a git repo sounded a nice idea , git gave version history rollback, audit log, branch/env, CI driven deployment all sounded great. Same problem typical operation folks are not used to this , they want a nice UI , and keep clicking and rather than do a grep/Sed replace in a jiffy. People just like different ways of working , it is hard for me to think graphically like a designer , I can understand that it can be hard for someone to think in text , it is better we give them tools that are comfortable with and fight other battles
- dragonwriter 6y ago> it fails in many teams, they do not care or a junior dev does not know If your team doesn’t care, by definition they don’t see it as a problem, so it only doesn’t work in the sense that they have decided hat they don’t need a solution. If your team cares but your junior devs don't know, you need to work on your standard practices documentation and onboarding procedures. “Use this default baseline .gitignore" is not a very arduous level of standardization that is hard to instill in new juniors.
- raverbashing 6y agoOr even better, XCode, Brew, and other services that have git can set it globally when git is installed. They know about MacOS after all
- bbx 6y agoGenius. Never thought about doing this.
- nyanpasu64 6y agoAdding to `~/.gitignore` is not enough. You need to tell Git to use it via `git config --global core.excludesfile ~/.gitignore` or similar.