Who am I
Who am I

Reputation: 83

What is the content of global .gitIgnore file?

Every time when I try to create new repository, I need to update my .gitignore file with some more comments. Now I am working with cocoapods so that my .gitigore file should ignore the userInterfaceState file changes. What is the comment I have to add to ignore the frequent commit. And is there any global .gitignore content which cover all the scenarios?

Upvotes: 3

Views: 319

Answers (2)

crea1
crea1

Reputation: 12517

To set a global gitignore file you can do this

git config --global core.excludesfile /home/user/.globalgitignore

Upvotes: 1

Paulo Fidalgo
Paulo Fidalgo

Reputation: 22296

You should try the github gitignore's:

https://github.com/github/gitignore

There are lot of templates for development frameworks or environments.

Upvotes: 0

Related Questions