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.

  • You can also use a default gitignore using Curl
curl -o ~/.gitignore

Generate gitignore

Visit and fill it with your needs.

results matching ""

    No results matching ""