# Checkout File from previous Commit
git show HEAD^:./your-file > a-different-name-for-your-file
git show a-previous-commit-sha^:./your-file > a-different-name-for-your-file
git show remotes/origin/master^:./your-file > a-different-name-for-your-file
git show remotes/origin/a-branch-name^:./your-file > a-different-name-for-your-file