1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-05 09:33:41 +02:00

git-diff: fix typos and add Dutch translation (#17838)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Dylan 2025-08-28 09:21:18 +00:00 committed by GitHub
parent 7c58b51e9b
commit c331c71ced
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 2 deletions

View file

@ -0,0 +1,36 @@
# git diff
> Toon veranderingen in bijgehouden bestanden.
> Meer informatie: <https://git-scm.com/docs/git-diff>.
- Toon niet-toegevoegde veranderingen:
`git diff`
- Toon alle niet-gecommitte (inclusief de toegevoegde) veranderingen:
`git diff HEAD`
- Toon alleen toegevoegde (nog niet gecommitte) veranderingen:
`git diff --staged`
- Toon veranderingen van alle commits sinds een bepaalde datum/tijd (een datumexpressie, b.v. "1 week 2 days" of een ISO-datum):
`git diff 'HEAD@{{{3 months|weeks|days|hours|seconds ago}}}'`
- Toon diff-statistieken, zoals gewijzigde bestanden, histogram en het totale aantal ingevoegde/verwijderde regels:
`git diff --stat {{commit}}`
- Toon een samenvatting van aangemaakte bestanden, hernoemingen en moduswijzigingen sinds een bepaalde commit:
`git diff --summary {{commit}}`
- Vergelijk een bestand tussen twee branches of commits:
`git diff {{branch_1}}..{{branch_2}} {{pad/naar/bestand}}`
- Vergelijk verschillende bestanden van de huidige branch met een andere branch:
`git diff {{andere_branch}}:{{pad/naar/bestand2}} {{pad/naar/bestand1}}`

View file

@ -31,6 +31,6 @@
`git diff {{branch_1}}..{{branch_2}} {{path/to/file}}`
- Compare different files from the current branch to other branch:
- Compare different files from the current branch to another branch:
`git diff {{branch}}:{{path/to/file2}} {{path/to/file}}`
`git diff {{other_branch}}:{{path/to/file2}} {{path/to/file1}}`