Skip to content

sanddorn/git-internals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Git Objects

Show Log

$ git log

Show Commit

$ git show --format=raw <commitish>

Show Tree

$ git ls-tree <treeish>

Show Blob

$ git show <blob>
$ git cat-file blob <blob>

Git GPG Signature

Show Signatures in Log

$ git log --show-signatures

Config to show signatures in log:

$ git config --global --add log.showSignature true

Commit using GPG

$ git commit -S

Config to Sign

$ git config --global commit.gpgsign true
$ git config --global user.signingkey ABCDEF02 <YOUR KEY>

Add GPG-Public Key to Git

Create Blob

$ gpg -a --export <YOUR KEY> | git hash-object -w --stdin

Add Tag to Blob

$ git tag -s MY_KEY <blob-hash>

Verify

$ git tag -v MY_KEY

Push to repository

$ git push --tags

Read GPG-Key

$ git cat-file blob MY_KEY

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published