Closed ff6347 closed 10 years ago
You should set a global .gitignore for Git instead. Run the following command:
git config --global core.excludesfile ~/.gitignore
Then edit your ~/.gitignore to add the files you want to ignore. For example:
.DS_Store
node_modules
Oh. That's a far better solution. I didn't know this is possible. Thanks a lot.
:fab
Am 12.03.2014 um 17:16 schrieb Mike Bostock notifications@github.com:
You should set a global .gitignore for Git instead. Run the following command:
git config --global core.excludesfile ~/.gitignore Then edit your ~/.gitignore to add the files you want to ignore. For example:
.DS_Store node_modules — Reply to this email directly or view it on GitHub.
This is more a feature request.
Would it be possible to set some basic ignore files in .gistup.json? On Mac the .DS_Store gets added to the version control. I added an alias to my .bash_profile to create a .gitignore file in the folder
but that makes the naming of the gist ugly (see the image)
I could remove the .DS_Store with an alias, but I think everybody else on Mac will have the same problem.