Was testing some old commits in a detached HEAD state. When I checkout out my latest commit, I saw the following ~HEAD tag next to a file (git status).
Davids-MacBook-Air:android david$ git status
On branch random_video
Untracked files:
(use "git add <file>..." to include in what will be committed)
app/src/main/java/com/myApp/android/Models/VideoMetadata.java~HEAD
app/src/main/res/drawable/lobbytab_random.xml
nothing added to commit but untracked files present (use "git add" to track)
How is it possible for the HEAD to be on a specific file - isn't it a pointer to the state of code at a specific point in time?