美文网首页
Git 使用记录

Git 使用记录

作者: 小强开学前 | 来源:发表于2020-06-30 14:19 被阅读0次
    1. 查看某个文件的历史提交记录
    git log --pretty=oneline [your_file_name]
    
    1. 查看某个文件在所有分支的历史提交记录
    git log --graph --all [your_file_name]
    
    1. 查看某次提交某次commit中的某个文件内容
    git show [commit_it]:your_file_name
    
    1. 在三的基础上将文件内容输入到文件中
    git show [commit_it]:[your_file_name] >> [file_name]
    

    相关文章

      网友评论

          本文标题:Git 使用记录

          本文链接:https://www.haomeiwen.com/subject/cahxqktx.html