Skip to content

Instantly share code, notes, and snippets.

View PrashantDhungana's full-sized avatar
🚀
Levelling Up ⬆

Prashant Sharma Dhungana PrashantDhungana

🚀
Levelling Up ⬆
View GitHub Profile
@PrashantDhungana
PrashantDhungana / update-git-author.sh
Created May 9, 2025 13:02
Bash Script to Update Git Commit History - Change Author and Committer Information
# This script updates author and committer information for past Git commits.
# It modifies commit history where the specified OLD_EMAIL is found,
# replacing it with the CORRECT_NAME and CORRECT_EMAIL.
# 🔥 Why Use This Script?
# - Correct misattributed commits after email address changes.
# - Update author information across all branches and tags.
# - Maintain consistency in commit history before sharing a project.
# 📦 How It Works: