Setting up a global .gitignore on a Mac

I work with multiple OSes, programming languages and frameworks so here is a tip on keeping your git repos clean. I create a global .gitignore file to exclude platform related files (OS and IDE) and then when I create a new project I create a project specific .gitignore for the project related files which is specific to the languages and frameworks I am using in the project.

Creating a global gitignore on a Mac


You may name the file and place it where you want. I typically just name it .gitignore and store at '~/.gitignore'.

Set it by running the following in a terminal:

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

Example global gitignore


Here is my global which I place at '~/.gitignore'



Project specific gitignore


GitHub have created a repo as a guide for what to include in your .gitignore for specific languages and frameworks: https://github.com/github/gitignore.


Comments

Anonymous said…
Elegant metallic work and hints of gold in the upholstery are the ultimate touches that convey heat and class. We've got it all – every thing from the high-stakes type of blackjack, the fast-paced excitement of craps, to the fun of roulette. With 12 reside and 15 digital desk video games waiting for you, odds are you're in for the time of your life. For an opportunity to hit it big, attempt your luck at life-changing jackpots including statewide progressive Wheel of Fortune. At The Mill Casino, you’ll find combine of|a mixture of} video games, from classics to new favorites, properly as|in addition to} an additional smoke-free slot room. "Collecting cash that isn't yours, even when it's a small 카지노사이트 amount, can otherwise be seen as theft by the on line casino," Page defined.

Popular posts from this blog

The Test Pyramid