K
K
KARLS0N2020-07-03 21:46:24
git
KARLS0N, 2020-07-03 21:46:24

How to do an interactive git push?

I need to ask a question to a user during a git push. I tried to use the pre-push hook, but it ignores the read command. Maybe you need to do something differently?
The task is simple, with git push you need to check whether all the variables in .gitlab-ci.yml are correctly set. If not, issue a prompt whether to ignore these variables or not. Depending on the response, continue or abort git push.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question