Answers for "git checkout file as different name"

1

git checkout file as different name

# 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
Posted by: Guest on September-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language