Quantcast
Viewing latest article 6
Browse Latest Browse All 13

Git – ignore files starting with period / full stop / dot

I use Git on my Mac, but some repositories are on the Windows drive of my Mac. Mac creates system files in Windows for each of the files, for example default.html will wind up with another file in the same folder called .default.html. This is all a bit annoying in Git which picks up on these system files, even though I have no interest in then.

But you can exclude them. Edit your .gitignore file and add:

.*
!/.gitignore

Filed under: Programming Tagged: Git, Github, Mac, Windows Image may be NSFW.
Clik here to view.

Viewing latest article 6
Browse Latest Browse All 13

Trending Articles