홈 디렉토리에 .gitignore를 만든다:vim ~/.gitignore
특별한 설정이 없으면 아래의 설정을 붙여 넣으면 된다
vi에디터로 붙여넣기 하기전에 :set paste
를 한번 해주면 줄 밀림 없이 잘 들어간다.# 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
마지막으로 이렇게 입력해주면 끝난다.git config --global core.excludesFile ~/.gitignore