Hi, this is simple tip - but I found it very usefull on Mac machines.
How to globally switch on ignoring .DS_Strore files:
Step 1: Create global .gitignore file.
echo .DS_Store > ~/.gitignore_global
Step 2: Tell git to use it in all repositories.
git config --global core.excludesfile ~/.gitignore_global
Bonus tip: If you have already repositories which has .DS_Store commited - you can remove them by going into your project directory and removing them from git:
git rm --cached .DS_Store
Subscribe to:
Post Comments (Atom)
Teaching AI to Write Code: The Symphony of System Prompts 🎵
The Spark: Karpathy's Thought 💡 Picture this: Andrej Karpathy, one of the brightest minds in AI, tweets about a missing piece in the ...
-
Hi! Recently I moved to Rust and working on several projects - more insights to come ... one of them was Datafusion - an extremely fast S...
-
Hi, This is one of my first Rust apps. I use it to benchmark long-running applications - like server /streaming solutions. Tracer Live ter...
No comments:
Post a Comment