Global .gitignore on MacOS

Sergii Riabokon
Nov 28, 2022

--

A short note. Found out a handy command for a global .gitignore on MacOS from this article

git config --global core.excludesfile ~/.gitignore

Obviously ~/.gitignore file has to be written beforehand.

touch ~/.gitignore
vim ~/.gitignore

--

--

Sergii Riabokon
Sergii Riabokon

Written by Sergii Riabokon

Technical blog about programming and related stuff. Mostly contains my personal discoveries and some memorable notes.

No responses yet