DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Show contents of all git objects in a git repo

4 years ago www.commandlinefu.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

find .git/objects/ -type f \| sed 's/\.git\/objects\/\///' | sed 's/\///g' | xargs -n1 -I% echo echo "%" \$\(git cat-file -p "%"\) \0 | xargs -n1 -0 sh -c This script finds all git objects and `git cat-file`'s their content. This is really just a helper function to play around with the internals of git repositories.

rautamiekka · 1 day ago Do you sometimes have trouble writing an essay, or is it just that inspiration leaves you and you still need to write?

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Subscribe to the feed for: commandlinefu.com © 2018 Dan's Tools | FAQs | API | Widget | Privacy

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com