-
Notifications
You must be signed in to change notification settings - Fork 87
Support git config #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks, adding more non-file based git commands would create a much harder to manage massive plugin. This goes against gulp guidelines. Referring to #56, use the |
@stevelacy Ok. Thanks for the info! I searched the issues for 'config' and nothing came up so I created this one. In the end, I resulted to using |
Ah, yes it is rather hard to notice. |
I 'd like push a PR to do this. const git = require('gulp-git')({
cwd: '~/work/git/gulp-git/', // cwd of child process
pager: false, // `--no-pager` from `git`.
config: { // `-c` from `git`, key-value pairs
"core.sparsecheckout": true,
"user.email": "[email protected]",
"user.name": "Your Name",
}
});
git.commit(...); |
I do not want to increase the API of this project. |
First, excellent gulp plugin! Really helpful and useful so thanks for your effort.
Second, is it possible to add support for 'git config' to the plugin?
Here's the git man page for it: http://git-scm.com/docs/git-config
Here's an example of how it could be used:
The text was updated successfully, but these errors were encountered: