Nome

svn commit — Invia i cambiamenti dalla propria copia di lavoro al deposito(repository).

Synopsis

svn commit [PATH...]

Descrizione

Send changes from your working copy to the repository. If you do not supply a log message with your commit by using either the --file or --message switch, svn will launch your editor for you to compose a commit message. See the editor-cmd section in sezione chiamata «Config».

Invia i cambiamenti dalla propria copia di lavoro al deposito(repository). Se non si fornisce un messaggio di registro al proprio commit usando le opzioni --file o --message, svn lancerà il proprio editor per comporre un messaggio di commit. Vedere la sezione editor-cmd in sezione chiamata «Config».

svn commit will send found lock tokens and release locks on all PATHS committed (recursively) unless --no-unlock is passed.

Se non viene passata l'opzione --no-unlock svn commit invierà tutti i token di blocco e sblocco trovati su tutti i PATH di cui viene fatto il commit (ricorsivamente).

[Suggerimento] Suggerimento

If you begin a commit and Subversion launches your editor to compose the commit message, you can still abort without committing your changes. If you want to cancel your commit, just quit your editor without saving your commit message and Subversion will prompt you to either abort the commit, continue with no message, or edit the message again.

Se si inizia un commit e Subversion lancia il proprio editor per scrivere il messaggio di commit, si può ancora abortire senza fare il commit dei propri cambiamenti. Se si vuole annullare il proprio commit, basta chiudere il proprio editor senza salvare il messaggio di commit e Subversion chiederà se abortire il commit, proseguire senza messaggio, o modificare il messaggio di nuovo.

Nomi alternativi

ci (short for check in; not co, which is short for checkout)

ci (abbreviazione per «check in»; non «co», che è l'abbreviazione per «checkout»)

Cambiamenti

Working copy, repository

Copia di lavoro, deposito(repository)

Accesso al deposito(repository)

Yes

Opzioni

--message (-m) TEXT
--file (-F) FILE
--quiet (-q)
--no-unlock
--non-recursive (-N)
--targets FILENAME
--force-log
--username USER
--password PASS
--no-auth-cache
--non-interactive
--encoding ENC
--config-dir DIR

Esempi

Commit a simple modification to a file with the commit message on the command line and an implicit target of your current directory (.):

Fare il commit di una modifica semplice a un file con il messaggio di commit sulla linea di comando e un obiettivo implicito della propria directory («.»):

$ svn commit -m "added howto section."
Sending        a
Transmitting file data .
Committed revision 3.
  $ svn commit -m "aggiunta sezione howto."
  Sending        a
  Transmitting file data .
  Committed revision 3.

Commit a modification to the file foo.c (explicitly specified on the command line) with the commit message in a file named msg:

Fare il commit di una modifica al file foo.c (esplicitamente specificato sulla linea di comando) con il messaggio di commit in un file chiamato msg:

$ svn commit -F msg foo.c
Sending        foo.c
Transmitting file data .
Committed revision 5.

If you want to use a file that's under version control for your commit message with --file, you need to pass the --force-log switch:

Se si vuole usare come messaggio di commit un file che è sotto controllo di versione con --file), occorre passare l'opzione --force-log:

$ svn commit --file file_under_vc.txt foo.c
svn: The log message file is under version control
svn: Log message file is a versioned file; use '--force-log' to override

$ svn commit --force-log --file file_under_vc.txt foo.c
Sending        foo.c
Transmitting file data .
Committed revision 6.
  $ svn commit --file file_sotto_vc.txt foo.c
  svn: The log message file is under version control
  svn: Log message file is a versioned file; use '--force-log' to override

  $ svn commit --force-log --file file_sotto_vc.txt foo.c
  Sending        foo.c
  Transmitting file data .
  Committed revision 6.

To commit a file scheduled for deletion:

Per fare il commit di un file pianificato per l'eliminazione:

$ svn commit -m "removed file 'c'."
Deleting       c

Committed revision 7.
  $ svn commit -m "cancellato file 'c'."
  Deleting       c

  Committed revision 7.