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 09:46] – [Ignorare le modifiche locali] niccolo | doc:appunti:prog:git [2026/11/06 10:51] (current) – [git restore] niccolo | ||
|---|---|---|---|
| Line 66: | Line 66: | ||
| cd qgis-web-client | cd qgis-web-client | ||
| git pull | git pull | ||
| + | </ | ||
| + | |||
| + | ==== git add ==== | ||
| + | |||
| + | Se nel repository locale di un progetto si aggiunge un file, questo risulta come //untracked file// (vedere con '' | ||
| + | |||
| + | < | ||
| + | git add filename | ||
| + | </ | ||
| + | |||
| + | Se si sono aggiunte diverse directory e file al progetto, è possibile aggiungerli tutti al sistema di tracking di Git con: | ||
| + | |||
| + | < | ||
| + | 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.1793954811.txt.gz · Last modified: by niccolo
