update git

This commit is contained in:
JMARyA 2024-02-06 08:18:11 +01:00
parent 1d1b1f10af
commit 7f732c5b19
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -82,6 +82,19 @@ git commit -m "message"
git commit -s -m "message"
```
See commit changes:
```shell
git show commit
# See only changed filenames or status
git show --name-only commit
git show --name-status commit
# Show commit statistics
git show --stat commit
# Show patch of commit
git show -p commit
git show --patch commit
```
Revert changes:
```shell
git revert <commit>