Skip to content

Instantly share code, notes, and snippets.

View Krupeshgithub's full-sized avatar
:dependabot:
Practice, Patience, & Confidence

Krupesh Krupeshgithub

:dependabot:
Practice, Patience, & Confidence
View GitHub Profile
@Krupeshgithub
Krupeshgithub / pre_push.sh
Last active December 26, 2023 16:38
When user would be apply force push 🫸 on protected branch then this script will be stop pushing 🛑 & script will ask to user for confirmation ✔️
#!/usr/bin/env bash
# @author: Krupeshgithub
# @version: 0.1
# You can skip this script with `--no-verify`
RED="\e[41m"
CYEN="\e[96m"
NOCOLOR="\e[0m"