Add GIT Ignore globally


Here is how to ignore your files/folder globally so you do not commit them to the repo

Create a global .gitignore

You can also create a global .gitignore file, which is a list of rules for ignoring files in every Git repositories on your computer. For example, you might create the file at ~/.gitignore_global and add some rules to it.

  1. Open Terminal.
  2. Run the following command in your terminal:
    git config --global core.excludesfile ~/.gitignore_global

Source : https://help.github.com/articles/ignoring-files/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s