Improved upon git's KB

This commit is contained in:
Michele Cereda
2022-05-16 21:54:56 +02:00
parent 176cb9ab03
commit be7e3b4713

View File

@@ -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