Viewing GIT history of moved files

Despite reading lots of other posts regarding GIT and moved files I still struggle to understand how to trace the full history. Doing gitk myfile as suggested here seems to only show history until the previous move. I understand that GIT doesn’t track files, only their content. So surely I should be able to view the full evolution of a file, even if it’s been moved?

Can anyone direct me to a good yet simple example/tutorial?

  • GIT pull/fetch from specific tag
  • Git Gui automatically opens repository
  • Drop old commit: `git rebase` causes merge conflicts
  • Simplest way to manage centralized git repositories on a Linux box?
  • Why is the git index file binary?
  • Error: fatal: Not a git repository (or any parent up to mount point /app)
  • I’d like to see an example where some files are moved around, changed and committed, then the history of a single file is displayed, moves and all. I’ve been looking at ‘log’ but that seems to concern checkins. Would still appreciate some advice, even if its says I’m somehow still thinking too much SVN.

  • How do I manage access control to a git repository on a file system?
  • git successfully push changes to main repository but still see no changes in the files
  • git-svn: How do I sync to an svn revision?
  • How to build git with static linking?
  • How do I move an existing Git submodule within a Git repository?
  • linking github to my server
  • One Solution collect form web for “Viewing GIT history of moved files”

    Try using the --follow option to git log:

    git log --follow file.txt
    Git Baby is a git and github fan, let's start git clone.