Skip to content

Instantly share code, notes, and snippets.

View aakashtandukar's full-sized avatar

Aakash Tandukar aakashtandukar

View GitHub Profile
@munnadroid
munnadroid / git-mirror-repo.sh
Last active December 29, 2023 04:01
Bash script to mirror from one git repo to another git repo
#!/bin/bash
# Function to handle non-critical errors
handle_minor_error() {
echo "Non-critical error on line $1"
}
# Trap errors
trap 'handle_minor_error $LINENO' ERR