doc:appunti:prog:git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:prog:git [2026/11/06 10:25] – [git commit] niccolo | doc:appunti:prog:git [2026/11/06 10:51] (current) – [git restore] niccolo | ||
|---|---|---|---|
| Line 70: | Line 70: | ||
| ==== git add ==== | ==== git add ==== | ||
| - | Se si è aggiunto | + | Se nel repository |
| < | < | ||
| Line 80: | Line 80: | ||
| < | < | ||
| git add -A | git add -A | ||
| + | </ | ||
| + | |||
| + | ==== git restore ==== | ||
| + | |||
| + | Se un file viene modificato nel repositori locale e **non è stato committed** né pushed nel repository origine, è possibile riportarlo alla versione precedente con: | ||
| + | |||
| + | < | ||
| + | git restore nomefile | ||
| </ | </ | ||
doc/appunti/prog/git.1793957139.txt.gz · Last modified: by niccolo
