1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

git-stash: update page and add Dutch translation (#17946)

This commit is contained in:
Dylan 2025-09-02 02:01:27 +00:00 committed by GitHub
parent b494c03972
commit e9929a08a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 3 deletions

View file

@ -0,0 +1,36 @@
# git stash
> Sla lokale Git-wijzigingen op in een tijdelijke locatie.
> Meer informatie: <https://git-scm.com/docs/git-stash>.
- Sla huidige veranderingen op met een bericht, behalve nieuwe (niet-bijgehouden) bestanden:
`git stash push {{[-m|--message]}} {{stash_message}}`
- Sla huidige veranderingen op, inclusief nieuwe niet-bijgehouden bestanden:
`git stash {{[-u|--include-untracked]}}`
- Selecteer interactief delen van gewijzigde bestanden om op te slaan:
`git stash {{[-p|--patch]}}`
- Toon alle stashes (toont stash-naam, gerelateerde branch en bericht):
`git stash list`
- Toon de wijzigingen als een patch tussen de stash (standaard is `stash@{0}`) en de commit van toen de stash voor het eerst werd aangemaakt:
`git stash show {{[-p|--patch]}} {{stash@{0}}}`
- Pas een stash toe (standaard is de recenste, genaamd `stash@{0}`):
`git stash apply {{facultatieve_stash_naam_of_commit}}`
- Verwijder of pas een stash toe (standaard is `stash@{0}`) en verwijder deze uit de stash-lijst als het toepassen geen conflicten veroorzaakt:
`git stash pop {{facultatieve_stash_naam}}`
- Verwijder alle stashes:
`git stash clear`

View file

@ -5,7 +5,7 @@
- Stash current changes with a message, except new (untracked) files:
`git stash push {{[-m|--message]}} {{optional_stash_message}}`
`git stash push {{[-m|--message]}} {{stash_message}}`
- Stash current changes, including new untracked files:
@ -23,11 +23,11 @@
`git stash show {{[-p|--patch]}} {{stash@{0}}}`
- Apply a stash (default is the latest, named stash@{0}):
- Apply a stash (default is the latest, named `stash@{0}`):
`git stash apply {{optional_stash_name_or_commit}}`
- Drop or apply a stash (default is stash@{0}) and remove it from the stash list if applying doesn't cause conflicts:
- Drop or apply a stash (default is `stash@{0}`) and remove it from the stash list if applying doesn't cause conflicts:
`git stash pop {{optional_stash_name}}`