Software⏱️ 2 min read📅 2026-05-30

How to Fix: Fix git blame to show original file after file was already copied

Git blame issue with copied files

Quick Answer: Use `git blame --porcelain` and then manually edit the output to show the original file name.

Fixing the issue of git blame not showing the original file after a file was copied involves using the `--follow` option. This tells Git to follow the history of the file, even if it has been copied.

💡 Why You Are Getting This Error

  • [Cause]

✅ Best Solutions to Fix It

Method 1: Using git blame with --follow

  1. Step 1: Run `git blame --follow ` for the commit you want to see the original file for.

Method 2: Using gitk or git rev-parse

  1. Step 1: Use `gitk --all` to visualize the commit history and identify the commit you want to see the original file for.

✨ Wrapping Up

By following these steps, you should be able to fix the issue of git blame not showing the original file after a file was copied.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions