Git Ignore
Create the file ~/.gitignore
as shown below to not track files that are almost always ignored in all Git repositories.
Open the .gitignore
file using your favourite text editor and add these below:
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
If your gitignore file isn't working, you probably need to set up your global core.excludesfile
configuration file to point to this global ignore file.
Last updated