diff --git a/knowledge base/git.md b/knowledge base/git.md index f370532..e3e02d5 100644 --- a/knowledge base/git.md +++ b/knowledge base/git.md @@ -48,6 +48,7 @@ git fetch # Get changes and merge them. git pull --all +git pull --verify-signatures git pull remote branch # Show what files changed. @@ -120,6 +121,9 @@ git log -p # Visualize the repository's history. git log --graph --full-history --all --color --decorate --oneline +# Show and verify signatures. +git log --show-signature -1 + # Remove staged and working directory changes. git reset --hard git reset --hard origin/main