macos-setup
  • MacOS Setup Guidance
  • Homebrew
    • Using Homebrew
    • cask
  • Terminal
    • iterm2
    • Terminal Hot keys
    • Zsh
    • Fish
    • tree
  • Git
    • Git Ignore (global)
  • Vagrant
  • Sublime TXT
    • Subl plugins
  • VIM
    • Hot keys
  • Python
    • pip
    • IPython
    • Virtualenv
  • Xcode
  • Evernote
Powered by GitBook
On this page

Was this helpful?

  1. Git

Git Ignore (global)

Create the file ~/.gitignore as shown below

# Folder view configuration files
.DS_Store
Desktop.ini

# Thumbnail cache files
._*
Thumbs.db

# Files that might appear on external disks
.Spotlight-V100
.Trashes

# Compiled Python files
*.pyc

# Compiled C++ files
*.out

# Application specific files
venv
node_modules
.sass-cache

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.

Note: You can also download it using curl

curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore -o ~/.gitignore
PreviousGitNextVagrant

Last updated 5 years ago

Was this helpful?

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

macOS specific .gitignore