In questa pagina

Prepara le modifiche

Prepara le modifiche per il commit, in modo da poterle inviare al repository remoto o a Gerrit per la revisione.

Aggiungi il file corrente allo stage

Per contrassegnare un file nuovo o modificato in vista del commit nel repository, aggiungilo allo stage in uno dei seguenti modi:

  • Vai su " Tools " > " Git " > " Current File " e seleziona " Stage <file> for Commit".
  • Fare clic con il tasto destro del mouse sul file in “Progetti” o “File System” e selezionare “ Git ” > “ Stage ”.
  • Vai su " Tools " > " Git " > " Local Repository " > " Commit", fai clic con il tasto destro del mouse sul file in " Files " e seleziona " Stage".

Rimuovere il file corrente dalle modifiche in sospeso

Per rimuovere il file corrente dalle modifiche in staging, annulla lo staging del file in uno dei seguenti modi:

  • Vai su " Tools " > " Git " > " Current File " e seleziona " Unstage <file> from Commit".
  • Fare clic con il tasto destro del mouse sul file in “Progetti” o “File System” e selezionare “ Git ” > “ Unstage ”.
  • Vai su " Tools " > " Git " > " Local Repository " > " Commit", fai clic con il tasto destro del mouse sul file in " Files " e seleziona " Unstage".

Preparare blocchi o righe

È possibile aggiungere le modifiche per un commit blocco per blocco o riga per riga nella vista Git Diff.

Vedi anche Come: Utilizzare Git e Utilizzo di Git.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.