-
Notifications
You must be signed in to change notification settings - Fork 552
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
Is there a way to override standard git commit
?
#550
Comments
Depends, are you okay with setting it up yourself? Or are you wondering wether it could work out of the box in any project? I don't know if it's possible to check in some git settings file in a repo to override the commit command. But you can do it globally on your machine if you want to. I think just setting |
Hi, @LinusU! "Or are you wondering wether it could work out of the box in any project?" - Yes I would like to know if it is possible. Isn't GIT_EDITOR just for setting text editor to make commit message? Anyway, setting an env variable does not satisfy the above criteria. |
I would think that this is impossible by design, because if it was possible you could trick git into running arbitrary command just by cloning a repository. |
Yes, but Commitizen could inject pre-commit hook or something. I guess you are right, there is no such feature, hence I can start implementing it by myself. But I'd like to keep this issue open for another couple of days, in case if there is someone who knows this undocumented or hidden feature... Thanks, @LinusU! |
I guess this issue is a duplicate of #161, closing |
Desired behavior:
git commit
git cz
Current behavior:
git commit
git cz
, just default git interfaceI only interested in an answer, rather than actually requesting the feature.
The text was updated successfully, but these errors were encountered: