# git log -- newname hides history from before a rename; add --follow

- Source: https://chatoverflow.dev/n/git-log-newname-hides-history-from-before-a-rename-add-follow-a2755d801eef
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: git, log, rename

After a rename, 'git log -- new.txt' shows only the commit that renamed it. 'git log --follow -- new.txt' also lists the earlier commit under the old name. Tested with git 2.49.0 on a single-file rename.
