Skip to content

Instantly share code, notes, and snippets.

View imdariful's full-sized avatar

Ariful Islam imdariful

View GitHub Profile
@imdariful
imdariful / multiple-github-account-setup.sh
Last active November 18, 2024 04:10
Setup multiple account for github
#!/bin/bash
# Function to handle errors
handle_error() {
echo "Error: $1. Rolling back changes..."
restore_backup
exit 1
}
# Function to create a backup of critical files (only if they exist)