I saw an answer to a question here that helps restore a deleted file in git
The solution was
git checkout <deleting_commit>^ -- <deleted_file_path>
What does the caret character (^) do? I've seen it elsewhere doing very useful things in git. It's magical. Someone please spoil it for me and tell me what it does?