Is there a way to have a confirmation message before to push into your local repository? For example, suppose I have a file called application-internal.yml. Before I push this file into my Gitlab Repository, is there a way to get a message to pop up in my command line that says something like “You are about to push application-internal.yml into your repository. Are you sure you want to push this file? (y/n)”.
Hi @Danimal66
Not exactly, but there are two things you can do:
- Add a Git hook to your repository that does something like this.
- Use GitLab’s code owners config to make it more difficult to merge this file.
I’d guess that a hook is probably what you’re after.