Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Default ignore files (feature request) #12

Closed
ff6347 opened this issue Mar 12, 2014 · 2 comments
Closed

Default ignore files (feature request) #12

ff6347 opened this issue Mar 12, 2014 · 2 comments

Comments

@ff6347
Copy link

ff6347 commented Mar 12, 2014

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
Copy link
Owner

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
Copy link
Author

ff6347 commented Mar 12, 2014

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 [email protected]:

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.

mbostock added a commit that referenced this issue Mar 12, 2014
This applies in addition to standard excludes. It’s still a good idea for
everyone to define their own global core.excludesfile, but I don’t see much harm
in also exposing a -x argument to gistup for doing the same thing. Fixes #12.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants