Git Checkout Deleted File

Look in git log for deleted file

This will require you scrolling through the git history. If you need you can use a GUI tool. But GUIs are for the weak. cli = power

commit 254b43ad0ceb039a80737919a5e14504b917bbed
Author: username <user@emailfqdn.tld>
Date:   Mon Jan 23 23:34:32 2017 -0800

    site cookbook: style updates; drop legacy site recipe

 delete mode 100644 cookbooks/customer_cookbook/recipes/site.rb

Note the commit id

commit 254b43ad0ceb039a80737919a5e14504b917bbed

Create a new temp branch

git checkout -b pulling_restored_file

Checkout that branch and file

git checkout 254b43ad0ceb039a80737919a5e14504b917bbed^ -- cookbooks/customer_cookbook/recipes/site.rb

Viola!

You should now have the restored file at:

cookbooks/customer_cookbook/recipes/site.rb