my ~/.gitconfig is:
[alias]
commit = "!sh commit.sh"
However, when I type git commit, script is not called.
Is it possible, or I have to use another alias name?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is NOT POSSIBLE
This is from my clone of git.git:
So its not possible. (
handle_internal_commandcallsexitif it finds the command).You could fix this in your sources by changing the order of the lines and making
handle_aliascallexitif it finds the alias.