mbostock / gistup

Create a gist from terminal, then use git to update it.
Other
488 stars 41 forks source link

Default ignore files (feature request) #12

Closed ff6347 closed 10 years ago

ff6347 commented 10 years ago

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

alias gistup='echo ".DS_Store" > .gitignore;gistup'

but that makes the naming of the gist ugly (see the image) screenshot

I could remove the .DS_Store with an alias, but I think everybody else on Mac will have the same problem.

mbostock commented 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
ff6347 commented 10 years ago

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.