How to view git objects and index without using git

后端 未结 5 2292
情歌与酒
情歌与酒 2020-12-29 07:13

Using the OS X terminal,

How an you view the contents of these files as plain text?

5条回答
  •  心在旅途
    2020-12-29 07:49

    alias deflate="perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'"
    
    deflate .git/objects/4b/3083256dedabd68e839d7717aa785424119990 | sha1sum
    4b3083256dedabd68e839d7717aa785424119990  -
    

提交回复
热议问题