Something like the following will print the raw content, including the “$type $length\0” header:
perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)' \
< .git/objects/27/de0a1dd5a89a94990618632967a1c86a82d577
More Related Contents:
- gitignore by file size?
- How do I discard unstaged changes in Git?
- Undo a Git merge that hasn’t been pushed yet
- Message ‘src refspec master does not match any’ when pushing commits in Git
- Remove a file from a Git repository without deleting it from the local filesystem
- How do I make git use the editor of my choice for commits?
- How do I commit case-sensitive only filename changes in Git?
- How can I remove a commit on GitHub? [duplicate]
- Committing Machine Specific Configuration Files
- What’s the difference between git clone –mirror and git clone –bare
- Edit the root commit in Git?
- Difference between author and committer in Git?
- Nested Git repositories?
- Triggering Azure DevOps builds based on changes to sub folders
- Git: Receiving “fatal: Not a git repository” when attempting to remote add a Git repo
- Remove a folder from git tracking
- What are the differences between git remote prune, git prune, git fetch –prune, etc
- Does deleting a branch in git remove it from the history?
- Git non-fast-forward rejected
- git cherry-pick not working
- What is the difference between “git branch” and “git checkout -b”?
- Why is “origin/HEAD” shown when running “git branch -r”?
- Git: Set up a fetch-only remote?
- Git: discover which commits ever touched a range of lines
- Fatal: Could not read password for ‘https://[email protected]’: terminal prompts disabled
- How to change my Git username in terminal?
- Why does Git use a colon (:) to delete remote branches?
- SourceTree App says uncommitted changes even for newly-cloned repository – what could be wrong?
- Git rebase –preserve-merges fails
- Cygwin/Git error cygheap base mismatch detected