Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用: 恢复了一个已删除的文件git checkout some_commit deleted_file,然后我尝试了git blame它,但它的所有历史都丢失了。我怎样才能保留历史记录?
git checkout some_commit deleted_file
git blame
试试这个:
git blame --reverse some_commit..HEAD -- deleted_file