1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages.it/common/git-stash.md
Guido Lena Cota d8f628d005
git*: add Italian translation (#4737)
* git-send-email: add it translation

* git-shortlog: add it translation

* git-show-branch: add it translation

* git-show-ref: add it translation

* git-show: add it translation

* git-svn: add it translation

* git-sizer: add it translation

* git-stage: add it translation

* git-status: add it translation

* git-stash: add it translation

* git-submodule: add it translation

* git-subtree: add it translation

* git-switch: add it translation

* git-tag: add it translation

* git-update-ref: add it translation

* git-worktree: add it translation

* Use snake case for tokens
2020-11-03 08:49:29 +01:00

36 lines
962 B
Markdown

# git stash
> Salva in un'area temporanea (stash) modifiche Git locali.
> Maggiori informazioni: <https://git-scm.com/docs/git-stash>.
- Salva in un'area temporanea modifiche locali, tranne i file nuovi e non tracciati:
`git stash [push -m {{messaggio_di_stash_opzionale}}]`
- Includi nello stash anche i file nuovi e non tracciati:
`git stash -u`
- Seleziona per lo stash parti di file modificati in modo interattivo:
`git stash -p`
- Elenca tutti gli stash, mostrandone il nome, ramo relativo e messaggio:
`git stash list`
- Applica uno stash (quello predefinito è l'ultimo, chiamato stash@{0}):
`git stash apply {{nome_o_commit_stash_opzionale}}`
- Applica uno stash (il predefinito è stash@{0}) e rimuovilo dalla lista degli stash se non ha causato conflitti:
`git stash pop {{nome_stash_opzionale}}`
- Rimuovi uno stash (il predefinito è stash@{0}):
`git stash drop {{nome_stash_opzionale}}`
- Rimuovi tutti gli stash:
`git stash clear`