📌  相关文章
📜  git checkout 作为不同的名称 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:08.536000             🧑  作者: Mango

代码示例1
# 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