Git Ignore (global)

Create the file ~/.gitignore as shown below

# Folder view configuration files

# Thumbnail cache files

# Files that might appear on external disks

# Compiled Python files

# Compiled C++ files

# Application specific files

followed by running the command below, in terminal:

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

to not track files that are almost always ignored in all Git repositories.

Or simply download macOS specific .gitignore maintained by GitHub itself and put contents of it to ~/.gitignore.

Note: You can also download it using curl

curl -o ~/.gitignore

results matching ""

    No results matching ""